Partager via


DeviceAdminReceiver.OnUserStopped(Context, Intent, UserHandle) Method

Definition

Called when a user or profile is stopped.

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

stoppedUser
UserHandle

The UserHandle of the user that has just been stopped.

Attributes

Remarks

Called when a user or profile is stopped.

This callback is only applicable to device owners.

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