Added in API level 26

KeyguardDismissCallback


abstract class KeyguardDismissCallback
kotlin.Any
   ↳ android.app.KeyguardManager.KeyguardDismissCallback

Callback passed to KeyguardManager#requestDismissKeyguard(Activity, KeyguardDismissCallback) to notify caller of result.

Summary

Public constructors

Public methods
open Unit

Called when dismissing Keyguard has been cancelled, i.

open Unit

Called when dismissing Keyguard is currently not feasible, i.

open Unit

Called when dismissing Keyguard has succeeded and the device is now unlocked.

Public constructors

KeyguardDismissCallback

KeyguardDismissCallback()

Public methods

onDismissCancelled

Added in API level 26
open fun onDismissCancelled(): Unit

Called when dismissing Keyguard has been cancelled, i.e. when the user cancelled the operation or the bouncer was hidden for some other reason.

onDismissError

Added in API level 26
open fun onDismissError(): Unit

Called when dismissing Keyguard is currently not feasible, i.e. when Keyguard is not available, not showing or when the activity requesting the Keyguard dismissal isn't showing or isn't showing behind Keyguard.

onDismissSucceeded

Added in API level 26
open fun onDismissSucceeded(): Unit

Called when dismissing Keyguard has succeeded and the device is now unlocked.