DeviceAdminReceiver.OnTransferAffiliatedProfileOwnershipComplete Method

Definition

Called on the device owner when the ownership of one of its affiliated profiles is transferred.

[Android.Runtime.Register("onTransferAffiliatedProfileOwnershipComplete", "(Landroid/content/Context;Landroid/os/UserHandle;)V", "GetOnTransferAffiliatedProfileOwnershipComplete_Landroid_content_Context_Landroid_os_UserHandle_Handler", ApiSince=28)]
public virtual void OnTransferAffiliatedProfileOwnershipComplete (Android.Content.Context context, Android.OS.UserHandle user);
[<Android.Runtime.Register("onTransferAffiliatedProfileOwnershipComplete", "(Landroid/content/Context;Landroid/os/UserHandle;)V", "GetOnTransferAffiliatedProfileOwnershipComplete_Landroid_content_Context_Landroid_os_UserHandle_Handler", ApiSince=28)>]
abstract member OnTransferAffiliatedProfileOwnershipComplete : Android.Content.Context * Android.OS.UserHandle -> unit
override this.OnTransferAffiliatedProfileOwnershipComplete : Android.Content.Context * Android.OS.UserHandle -> unit

Parameters

context
Context

the running context as per #onReceive

user
UserHandle

the UserHandle of the affiliated user

Attributes

Remarks

Called on the device owner when the ownership of one of its affiliated profiles is transferred.

This can be used when transferring both device and profile ownership when using work profile on a fully managed device. The process would look like this: <ol> <li>Transfer profile ownership</li> <li>The device owner gets notified with this callback</li> <li>Transfer device ownership</li> <li>Both profile and device ownerships have been transferred</li> </ol>

Java documentation for android.app.admin.DeviceAdminReceiver.onTransferAffiliatedProfileOwnershipComplete(android.content.Context, 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