ScreenLockManager

Manages if the app should be locked.

Properties

Link copied to clipboard
@get:JvmName(name = "isEnabled")
abstract val enabled: Boolean

If the app has a user that requires mobile policy.

Link copied to clipboard
@get:JvmName(name = "isLocked")
abstract val locked: Boolean

If the device is currently locked.

Functions

Link copied to clipboard
abstract fun lock()

Locks the app immediately.