DeviceAdminReceiver.OnPasswordFailed Method

Definition

Overloads

OnPasswordFailed(Context, Intent)

Called after the user has failed at entering their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_FAILED.

OnPasswordFailed(Context, Intent, UserHandle)

Called after the user has failed at entering their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_FAILED.

OnPasswordFailed(Context, Intent)

Called after the user has failed at entering their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_FAILED.

[Android.Runtime.Register("onPasswordFailed", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnPasswordFailed_Landroid_content_Context_Landroid_content_Intent_Handler")]
public virtual void OnPasswordFailed (Android.Content.Context context, Android.Content.Intent intent);
[<Android.Runtime.Register("onPasswordFailed", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnPasswordFailed_Landroid_content_Context_Landroid_content_Intent_Handler")>]
abstract member OnPasswordFailed : Android.Content.Context * Android.Content.Intent -> unit
override this.OnPasswordFailed : Android.Content.Context * Android.Content.Intent -> unit

Parameters

context
Context

The running context as per #onReceive.

intent
Intent

The received intent as per #onReceive.

Attributes

Remarks

Called after the user has failed at entering their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_FAILED. At this point you can use DevicePolicyManager#getCurrentFailedPasswordAttempts() to retrieve the number of failed password attempts.

This member is deprecated. From android.os.Build.VERSION_CODES#O, use #onPasswordFailed(Context, Intent, UserHandle) instead.

Java documentation for android.app.admin.DeviceAdminReceiver.onPasswordFailed(android.content.Context, android.content.Intent).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

OnPasswordFailed(Context, Intent, UserHandle)

Called after the user has failed at entering their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_FAILED.

[Android.Runtime.Register("onPasswordFailed", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnPasswordFailed_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)]
public virtual void OnPasswordFailed (Android.Content.Context context, Android.Content.Intent intent, Android.OS.UserHandle user);
[<Android.Runtime.Register("onPasswordFailed", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnPasswordFailed_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)>]
abstract member OnPasswordFailed : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit
override this.OnPasswordFailed : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit

Parameters

context
Context

The running context as per #onReceive.

intent
Intent

The received intent as per #onReceive.

user
UserHandle

The user or profile for whom the password check failed. To see whether this user is the current profile or a parent user, check for equality with Process#myUserHandle.

Attributes

Remarks

Called after the user has failed at entering their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_FAILED. At this point you can use DevicePolicyManager#getCurrentFailedPasswordAttempts() to retrieve the number of failed password attempts.

Java documentation for android.app.admin.DeviceAdminReceiver.onPasswordFailed(android.content.Context, android.content.Intent, android.os.UserHandle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to