RestrictionsManager.ActionRequestPermission Field

Definition

Broadcast intent sent to the Restrictions Provider to handle a permission request from an app.

[Android.Runtime.Register("ACTION_REQUEST_PERMISSION")]
public const string ActionRequestPermission;
[<Android.Runtime.Register("ACTION_REQUEST_PERMISSION")>]
val mutable ActionRequestPermission : string

Field Value

Attributes

Remarks

Broadcast intent sent to the Restrictions Provider to handle a permission request from an app. It will have the following extras: #EXTRA_PACKAGE_NAME, #EXTRA_REQUEST_TYPE, #EXTRA_REQUEST_ID and #EXTRA_REQUEST_BUNDLE. The Restrictions Provider will handle the request and respond back to the RestrictionsManager, when a response is available, by calling #notifyPermissionResponse.

The BroadcastReceiver must require the android.Manifest.permission#BIND_DEVICE_ADMIN permission to ensure that only the system can send the broadcast.

Java documentation for android.content.RestrictionsManager.ACTION_REQUEST_PERMISSION.

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.

Applies to