Udostępnij za pośrednictwem


DeviceAdminReceiver.OnTransferOwnershipComplete Method

Definition

Called on the newly assigned owner (either device owner or profile owner) when the ownership transfer has completed successfully.

[Android.Runtime.Register("onTransferOwnershipComplete", "(Landroid/content/Context;Landroid/os/PersistableBundle;)V", "GetOnTransferOwnershipComplete_Landroid_content_Context_Landroid_os_PersistableBundle_Handler", ApiSince=28)]
public virtual void OnTransferOwnershipComplete (Android.Content.Context context, Android.OS.PersistableBundle? bundle);
[<Android.Runtime.Register("onTransferOwnershipComplete", "(Landroid/content/Context;Landroid/os/PersistableBundle;)V", "GetOnTransferOwnershipComplete_Landroid_content_Context_Landroid_os_PersistableBundle_Handler", ApiSince=28)>]
abstract member OnTransferOwnershipComplete : Android.Content.Context * Android.OS.PersistableBundle -> unit
override this.OnTransferOwnershipComplete : Android.Content.Context * Android.OS.PersistableBundle -> unit

Parameters

context
Context

the running context as per #onReceive

bundle
PersistableBundle

the data to be passed to the new owner

Attributes

Remarks

Called on the newly assigned owner (either device owner or profile owner) when the ownership transfer has completed successfully.

The bundle parameter allows the original owner to pass data to the new one.

Java documentation for android.app.admin.DeviceAdminReceiver.onTransferOwnershipComplete(android.content.Context, android.os.PersistableBundle).

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