- 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).
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).