Android.Content.RestrictionsManager.RequestPermission Method
Called by an application to request permission for an operation.

Syntax

[Android.Runtime.Register("requestPermission", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/PersistableBundle;)V", "GetRequestPermission_Ljava_lang_String_Ljava_lang_String_Landroid_os_PersistableBundle_Handler")]
public virtual void RequestPermission (string requestType, string requestId, Android.OS.PersistableBundle request)

Parameters

requestType
The type of request. The type could be one of the predefined types specified here or a custom type that the specific Restrictions Provider might understand. For custom types, the type name should be namespaced to avoid collisions with predefined types and types specified by other Restrictions Providers.
requestId
A unique id generated by the app that contains sufficient information to identify the parameters of the request when it receives the id in the response.
request
A PersistableBundle containing the data corresponding to the specified request type. The keys for the data in the bundle depend on the request type.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif any of the required parameters are missing.

Remarks

Called by an application to request permission for an operation. The contents of the request are passed in a Bundle that contains several pieces of data depending on the chosen request type.

[Android Documentation]

Requirements

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