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

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

KeyguardDismissCallback

public 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.