init method
Future<void>
init({
- bool? isScreenLockEnabled,
- bool? isBackgroundLockEnabled,
- double? backgroundTimeout,
- bool? isTouchTimeoutEnabled,
- double? touchTimeout,
- bool? debug,
override
Implementation
@override
Future<void> init({
bool? isScreenLockEnabled,
bool? isBackgroundLockEnabled,
double? backgroundTimeout,
bool? isTouchTimeoutEnabled,
double? touchTimeout,
bool? debug,
}) {
final Map<String, dynamic> arguments = {};
if (isScreenLockEnabled != null) {
arguments['isScreenLockEnabled'] = isScreenLockEnabled;
}
if (isBackgroundLockEnabled != null) {
arguments['isBackgroundLockEnabled'] = isBackgroundLockEnabled;
}
if (backgroundTimeout != null) {
arguments['backgroundTimeout'] = backgroundTimeout;
}
if (isTouchTimeoutEnabled != null) {
arguments['isTouchTimeoutEnabled'] = isTouchTimeoutEnabled;
}
if (touchTimeout != null) {
arguments['touchTimeout'] = touchTimeout;
}
if (debug != null) {
arguments['debug'] = debug;
}
return methodChannel.invokeMethod(
'init', arguments.isEmpty ? null : arguments);
}