Compartir a través de


DeviceAdminReceiver.OnUserRemoved(Context, Intent, UserHandle) Method

Definition

Called when a user or profile is removed.

[Android.Runtime.Register("onUserRemoved", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnUserRemoved_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)]
public virtual void OnUserRemoved (Android.Content.Context context, Android.Content.Intent intent, Android.OS.UserHandle removedUser);
[<Android.Runtime.Register("onUserRemoved", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnUserRemoved_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)>]
abstract member OnUserRemoved : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit
override this.OnUserRemoved : 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.

removedUser
UserHandle

The UserHandle of the user that has just been removed.

Attributes

Remarks

Called when a user or profile is removed.

This callback is only applicable to device owners.

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