How to control ios statusbar with script?

How to control ios statusbar with script?
I have tried
PlayerSettings.iOS.statusBarStyle and
PlayerSettings.statusBarHidden

They just don’t like me to use PlayerSettings.
I need to build this on iOS and android, I cant use unityEditor class, and it doesn’t work with iOS build as well.

Would anybody provide me a short example about this?

Thanks!!

@karsnen
I end up using a plugin in HuaYe1975’s Github repo: GitHub - HuaYe1975/UnityStatusBarForiOS: Unity plugin for ios to show/hide status bar
Worked for my old app (2 YEARS AGO, pretty sure it should still working).