共用方式為


DeviceAdminReceiver.OnUserStarted(Context, Intent, UserHandle) Method

Definition

Called when a user or profile is started.

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

startedUser
UserHandle

The UserHandle of the user that has just been started.

Attributes

Remarks

Called when a user or profile is started.

This callback is only applicable to device owners.

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