次の方法で共有


DeviceAdminReceiver.OnUserAdded(Context, Intent, UserHandle) Method

Definition

Called when a user or profile is created.

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

addedUser
UserHandle

The UserHandle of the user that has just been added.

Attributes

Remarks

Called when a user or profile is created.

This callback is only applicable to device owners.

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