DevicePolicyManager.TransferOwnershipBundle Property
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.
Returns the data passed from the current administrator to the new administrator during an ownership transfer.
public virtual Android.OS.PersistableBundle? TransferOwnershipBundle { [Android.Runtime.Register("getTransferOwnershipBundle", "()Landroid/os/PersistableBundle;", "GetGetTransferOwnershipBundleHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getTransferOwnershipBundle", "()Landroid/os/PersistableBundle;", "GetGetTransferOwnershipBundleHandler", ApiSince=28)>]
member this.TransferOwnershipBundle : Android.OS.PersistableBundle
Property Value
- Attributes
Remarks
Returns the data passed from the current administrator to the new administrator during an ownership transfer. This is the same bundle
passed in #transferOwnership(ComponentName, ComponentName, PersistableBundle)
. The bundle is persisted until the profile owner or device owner is removed.
This is the same bundle
received in the DeviceAdminReceiver#onTransferOwnershipComplete(Context, PersistableBundle)
. Use this method to retrieve it after the transfer as long as the new administrator is the active device or profile owner.
Returns null
if no ownership transfer was started for the calling user.
Java documentation for android.app.admin.DevicePolicyManager.getTransferOwnershipBundle()
.
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.