Skip to content

Plugin for Apache Cordova 3.3 to enable Immersive mode on Android Kitkat

Notifications You must be signed in to change notification settings

toluhta/Immersify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Immersify

Plugin for Apache Cordova 3.3 to enable Immersive mode on Android Kitkat

More information about Immersive mode can be found from https://developer.android.com/training/system-ui/immersive.html

Installation

cordova plugin add https://github.com/toluhta/Immersify.git

Usage

When device is ready...

###Immersive mode

Immersify.enable(successCallback, errorCallback);

Sticky Immersive mode

Immersify.enableSticky(successCallback, errorCallback);

Disable

Immersify.disable();

Tips

Immersive mode is only available on Android Kitkat so check your users platform version before using.

When resuming the app, immersive mode is disabled so maybe hook a eventlistener for resume and enable immersive mode again

License

This projected is licensed under the terms of the MIT license.

About

Plugin for Apache Cordova 3.3 to enable Immersive mode on Android Kitkat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •