Udostępnij za pośrednictwem


DeviceAdminReceiver.OnPasswordSucceeded Method

Definition

Overloads

OnPasswordSucceeded(Context, Intent, UserHandle)

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

OnPasswordSucceeded(Context, Intent)

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

OnPasswordSucceeded(Context, Intent, UserHandle)

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

[Android.Runtime.Register("onPasswordSucceeded", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnPasswordSucceeded_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)]
public virtual void OnPasswordSucceeded (Android.Content.Context context, Android.Content.Intent intent, Android.OS.UserHandle user);
[<Android.Runtime.Register("onPasswordSucceeded", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnPasswordSucceeded_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)>]
abstract member OnPasswordSucceeded : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit
override this.OnPasswordSucceeded : 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 of profile for whom the password check succeeded. 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 succeeded at entering their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_SUCCEEDED. This will only be received the first time they succeed after having previously failed.

Java documentation for android.app.admin.DeviceAdminReceiver.onPasswordSucceeded(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

OnPasswordSucceeded(Context, Intent)

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

[Android.Runtime.Register("onPasswordSucceeded", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnPasswordSucceeded_Landroid_content_Context_Landroid_content_Intent_Handler")]
public virtual void OnPasswordSucceeded (Android.Content.Context context, Android.Content.Intent intent);
[<Android.Runtime.Register("onPasswordSucceeded", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnPasswordSucceeded_Landroid_content_Context_Landroid_content_Intent_Handler")>]
abstract member OnPasswordSucceeded : Android.Content.Context * Android.Content.Intent -> unit
override this.OnPasswordSucceeded : 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 succeeded at entering their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_SUCCEEDED. This will only be received the first time they succeed after having previously failed.

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

Java documentation for android.app.admin.DeviceAdminReceiver.onPasswordSucceeded(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