KeyguardManager.KeyguardDismissCallback

public static abstract class KeyguardManager.KeyguardDismissCallback
extends Object

java.lang.Object
   ↳ android.app.KeyguardManager.KeyguardDismissCallback


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

Summary

Public constructors

KeyguardManager.KeyguardDismissCallback()

Public methods

void onDismissCancelled()

Called when dismissing Keyguard has been cancelled, i.e.

void onDismissError()

Called when dismissing Keyguard is currently not feasible, i.e.

void onDismissSucceeded()

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

Inherited methods

Public constructors

KeyguardManager.KeyguardDismissCallback

added in API level 26
public KeyguardManager.KeyguardDismissCallback ()

Public methods

onDismissCancelled

added in API level 26
public void onDismissCancelled ()

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
public void onDismissError ()

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
public void onDismissSucceeded ()

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