stopKioskMode function
On Android, stops the current task from being locked. On iOS, exits the Single App mode.
On Android, the result will always be null
, as Activity.stopLockTask does not guaranteed that a task will be
unlocked, or screen pinning will be stopped.
On iOS, the result will be true
if the request was fulfilled, false
- otherwise.
Implementation
// ignore: prefer-boolean-prefixes, a valid name with a bool result
Future<bool?> stopKioskMode() => _channel.invokeMethod<bool>('stopKioskMode');