checkIfDeviceSecure static method

Future<bool> checkIfDeviceSecure()

Checks if the screen lock has been set on the device. Returns true if it is set and false if not. An asynchronous function, has to be awaited.

Implementation

static Future<bool> checkIfDeviceSecure() async {
  var result = await _channel.invokeMethod('checkIfDeviceSecure');
  if (result == true) {
    return true;
  } else {
    return false;
  }
}