Compartir a través de


Intent.ActionViewPermissionUsageForPeriod Field

Definition

Activity action: Launch UI to show information about the usage of a given permission group in a given period.

[Android.Runtime.Register("ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.START_VIEW_PERMISSION_USAGE")]
public const string ActionViewPermissionUsageForPeriod;
[<Android.Runtime.Register("ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.START_VIEW_PERMISSION_USAGE")>]
val mutable ActionViewPermissionUsageForPeriod : string

Field Value

Implements

Attributes

Remarks

Activity action: Launch UI to show information about the usage of a given permission group in a given period. This action would be handled by apps that want to show details about how and why given permission group is being used.

<strong>Important:</strong>You must protect the activity that handles this action with the android.Manifest.permission#START_VIEW_PERMISSION_USAGE permission to ensure that only the system can launch this activity. The system will not launch activities that are not properly protected.

Input: #EXTRA_PERMISSION_GROUP_NAME specifies the permission group for which the launched UI would be targeted.

Input: #EXTRA_ATTRIBUTION_TAGS specifies the attribution tags for the usage entry.

Input: #EXTRA_START_TIME specifies the start time of the period (epoch time in millis). Both start time and end time are needed and start time must be <= end time.

Input: #EXTRA_END_TIME specifies the end time of the period (epoch time in millis). Both start time and end time are needed and start time must be <= end time.

Output: Nothing.

Java documentation for android.content.Intent.ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD.

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