Android.Service.Restrictions.RestrictionsReceiver.OnRequestPermission Method
An asynchronous permission request made by an application for an operation that requires authorization by a local or remote administrator other than the user.

Syntax

[Android.Runtime.Register("onRequestPermission", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/PersistableBundle;)V", "GetOnRequestPermission_Landroid_content_Context_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Landroid_os_PersistableBundle_Handler")]
public abstract void OnRequestPermission (Android.Content.Context context, string packageName, string requestType, string requestId, Android.OS.PersistableBundle request)

See Also

Android.Content.RestrictionsManager.RequestTypeApproval
Android.Content.RestrictionsManager.RequestKeyId

Parameters

context
Documentation for this section has not yet been entered.
packageName
the application requesting permission.
requestType
the type of request, which determines the content and presentation of the request data.
requestId
Documentation for this section has not yet been entered.
request
the request data bundle containing at a minimum a request id.

Remarks

An asynchronous permission request made by an application for an operation that requires authorization by a local or remote administrator other than the user. The Restrictions Provider should transfer the request to the administrator and deliver back a response, when available. The calling application is aware that the response could take an indefinite amount of time.

If the request bundle contains the key Android.Content.RestrictionsManager.RequestKeyNewRequest, then a new request must be sent. Otherwise the provider can look up any previous response to the same requestId and return the cached response.

[Android Documentation]

Requirements

Namespace: Android.Service.Restrictions
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0