Partager via


DeviceAdminReceiver.OnPasswordChanged Method

Definition

Overloads

OnPasswordChanged(Context, Intent)

Called after the user has changed their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_CHANGED.

OnPasswordChanged(Context, Intent, UserHandle)

Called after the user has changed their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_CHANGED.

OnPasswordChanged(Context, Intent)

Called after the user has changed their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_CHANGED.

[Android.Runtime.Register("onPasswordChanged", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnPasswordChanged_Landroid_content_Context_Landroid_content_Intent_Handler")]
public virtual void OnPasswordChanged (Android.Content.Context context, Android.Content.Intent intent);
[<Android.Runtime.Register("onPasswordChanged", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnPasswordChanged_Landroid_content_Context_Landroid_content_Intent_Handler")>]
abstract member OnPasswordChanged : Android.Content.Context * Android.Content.Intent -> unit
override this.OnPasswordChanged : 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 changed their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_CHANGED. At this point you can use DevicePolicyManager#getPasswordQuality(android.content.ComponentName) to retrieve the active password characteristics.

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

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

OnPasswordChanged(Context, Intent, UserHandle)

Called after the user has changed their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_CHANGED.

[Android.Runtime.Register("onPasswordChanged", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnPasswordChanged_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)]
public virtual void OnPasswordChanged (Android.Content.Context context, Android.Content.Intent intent, Android.OS.UserHandle user);
[<Android.Runtime.Register("onPasswordChanged", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnPasswordChanged_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)>]
abstract member OnPasswordChanged : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit
override this.OnPasswordChanged : 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 changed. 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 changed their device or profile challenge password, as a result of receiving #ACTION_PASSWORD_CHANGED. At this point you can use DevicePolicyManager#getPasswordQuality(android.content.ComponentName) to retrieve the active password characteristics.

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