Cordova screen pinning plugin
Cordova plugin that exposes screen pinning APIs on Android (API 21+).
Installation
Run the following command inside your project's folder:
cordova plugin add cordova-plugin-screen-pinning
If you are using Ionic run the following command instead:
ionic cordova plugin add cordova-plugin-screen-pinning
Usage
enterPinnedMode()
Function that makes the app enter pinned mode. It accepts the following parameters:
- successCallback: [Function optional] - Success callback function.
- errorCallback: [Function optional] - Error callback function, takes the message string as the only parameter.
cordovapluginsscreenPinning;
Example
// Enter pinned modecordovapluginsscreenPinning;
exitPinnedMode()
Function that makes the app exit pinned mode. It accepts the following parameters:
- successCallback: [Function optional] - Success callback function.
- errorCallback: [Function optional] - Error callback function, takes the message string as the only parameter.
cordovapluginsscreenPinning;
Example
// Exit pinned modecordovapluginsscreenPinning;