DeviceAdminReceiver.OnPasswordChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OnPasswordChanged(Context, Intent) |
Called after the user has changed their device or profile challenge password, as a result of
receiving |
OnPasswordChanged(Context, Intent, UserHandle) |
Called after the user has changed their device or profile challenge password, as a result of
receiving |
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.
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.
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.