ScreenLockState

interface ScreenLockState

An interface for querying and modifying the screen lock state.

Properties

Link copied to clipboard
abstract val hasScreenLock: Boolean

Whether the device has a screen lock.

Functions

Link copied to clipboard
abstract suspend fun launchSettingsPageWithScreenLock()

Launches the relevant page in the platform's Settings app for the user to configure the screen lock.