mesmotronic / cordova-plugin-fullscreen

Plugin for Cordova (PhoneGap) to enable Android's various full screen modes
BSD 3-Clause "New" or "Revised" License
168 stars 56 forks source link

disable leanMode #37

Closed josephlodero closed 4 years ago

josephlodero commented 5 years ago

is there a way to disable leanMode? what im trying to do is when a user full screen the video it will enable the leanmode then if not full screen disable leanmode

thanks!

neilrackett commented 4 years ago

Lean mode is designed only to persist until the next user interaction, so my suggestion would be to use immersive mode instead, for example:

// When your app enters full screen
AndroidFullScreen.immersiveMode();

// When your app leaves full screen
AndroidFullScreen.showSystemUI();