Android.App.Admin.DevicePolicyManager.SetRestrictionsProvider Method
Designates a specific service component as the provider for making permission requests of a local or remote administrator of the user.

Syntax

[Android.Runtime.Register("setRestrictionsProvider", "(Landroid/content/ComponentName;Landroid/content/ComponentName;)V", "GetSetRestrictionsProvider_Landroid_content_ComponentName_Landroid_content_ComponentName_Handler")]
public virtual void SetRestrictionsProvider (Android.Content.ComponentName admin, Android.Content.ComponentName provider)

Parameters

admin
Which Android.App.Admin.DeviceAdminReceiver this request is associated with.
provider
The component name of the service that implements Android.Service.Restrictions.RestrictionsReceiver. If this param is null, it removes the restrictions provider previously assigned.

Remarks

Designates a specific service component as the provider for making permission requests of a local or remote administrator of the user.

Only a profile owner can designate the restrictions provider.

[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