longUnlock method

dynamic longUnlock(
  1. String deviceId, {
  2. bool isVibrate = false,
})

远程开启指定设备 deviceId代表开启指定设备

Implementation

longUnlock(String deviceId, {bool isVibrate = false}) async {
  try {
    final map = {"deviceId": deviceId};
    var rtn = await methodChannel.invokeMethod("longUnlock", map);
    if (isVibrate) Vibrate().start();
    return rtn;
  } catch (e) {
    rethrow;
  }
}