Android.App.Admin.DeviceAdminReceiver.OnProfileProvisioningComplete Method
Called when provisioning of a managed profile or managed device has completed successfully.

Syntax

[Android.Runtime.Register("onProfileProvisioningComplete", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnProfileProvisioningComplete_Landroid_content_Context_Landroid_content_Intent_Handler")]
public virtual void OnProfileProvisioningComplete (Android.Content.Context context, Android.Content.Intent intent)

Parameters

context
The running context as per DeviceAdminReceiver.OnReceive(Android.Content.Context, Android.Content.Intent).
intent
The received intent as per DeviceAdminReceiver.OnReceive(Android.Content.Context, Android.Content.Intent).

Remarks

Called when provisioning of a managed profile or managed device has completed successfully.

As a prerequisit for the execution of this callback the (@link DeviceAdminReceiver} has to declare an intent filter for DeviceAdminReceiver.ActionProfileProvisioningComplete. Its component must also be specified in the DevicePolicyManager.ExtraDeviceAdmin of the DevicePolicyManager.ActionProvisionManagedProfile intent that started the managed provisioning.

When provisioning is complete, the managed profile is hidden until the profile owner calls {DevicePolicyManager#setProfileEnabled(ComponentName admin)}. Typically a profile owner will enable the profile when it has finished any additional setup such as adding an account by using the Android.Accounts.AccountManager and calling apis to bring the profile into the desired state.

Note that provisioning completes without waiting for any server interactions, so the profile owner needs to wait for data to be available if required (e.g android device ids or other data that is set as a result of server interactions).

[Android Documentation]

Requirements

Namespace: Android.App.Admin
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8