A native expo module to control the kiosk mode on Android.
npm install expo-kiosk-control
Starts the kiosk mode.
Exits the kiosk mode.
Enables exiting kiosk mode by unpinning the app.
Disables exiting kiosk mode by unpinning the app.
Returns a boolean indicating if the kiosk mode is enabled.
Called when the recent button is pressed. This is used to prevent the app from being closed when the recent button is pressed and if disableExitByUnpinning
has been called before.
Must be called in the
AppState
change listener.
See the example for a full example.