DeviceAdminReceiver.OnTransferOwnershipComplete Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.