check_device_lock 0.0.3
check_device_lock: ^0.0.3 copied to clipboard
For Android and iOS to check the device is secure by any passcode or biomatric.
check_device_lock #
For Android and iOS to check the device is secure by any passcode or biomatric.
Getting Started #
Method #
Call this method to check if the device is secure:
Future<void> initPlatformState() async {
bool value;
// Platform messages may fail, so we use a try/catch PlatformException.
// We also handle the message potentially returning null.
try {
value = await CheckDeviceLock.isDeviceSecure ?? false;
} on PlatformException {
value = false;
}
}