AppSecurityLockPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- AppSecurityLockPlatform
- Implementers
Constructors
- AppSecurityLockPlatform.new()
- Constructs a AppSecurityLockPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
{bool? isScreenLockEnabled, bool? isBackgroundLockEnabled, double? backgroundTimeout, bool? isTouchTimeoutEnabled, double? touchTimeout, bool? debug}) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onUserInteraction(
) → void - 用户交互时调用(主要用于Android平台)
-
restartTouchTimer(
) → void -
setBackgroundLockEnabled(
bool enabled) → void - 更新后台锁定状态
-
setBackgroundTimeout(
double timeoutSeconds) → Future< void> - 设置后台超时时间(秒)
-
setLockEnabled(
bool enabled) → Future< void> - 设置锁定状态
-
setOnAppLockedCallback(
AppLockedCallback? callback) → void - 锁定回调
-
setOnAppUnlockedCallback(
AppUnlockedCallback? callback) → void -
setOnEnterBackgroundCallback(
AppLifecycleCallback? callback) → void - 设置应用进入后台的回调
-
setOnEnterForegroundCallback(
AppLifecycleCallback? callback) → void - 设置应用进入前台的回调
-
setScreenLockEnabled(
bool enabled) → void - 更新屏幕锁定状态
-
setTouchTimeout(
double timeoutSeconds) → Future< void> - 设置触摸超时时间(秒)
-
setTouchTimeoutEnabled(
bool enabled) → Future< void> - 设置触摸超时是否启用
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ AppSecurityLockPlatform
-
The default instance of AppSecurityLockPlatform to use.
getter/setter pair