RestrictionsReceiver.OnRequestPermission Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An asynchronous permission request made by an application for an operation that requires authorization by a local or remote administrator other than the user.
[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);
[<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")>]
abstract member OnRequestPermission : Android.Content.Context * string * string * string * Android.OS.PersistableBundle -> unit
Parameters
- context
- Context
- packageName
- String
the application requesting permission.
- requestType
- String
the type of request, which determines the content and presentation of the request data.
- requestId
- String
- request
- PersistableBundle
the request data bundle containing at a minimum a request id.
- Attributes
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 RestrictionsManager#REQUEST_KEY_NEW_REQUEST
, 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.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.