Share via


PackageManager.GetPermissionInfo(String, PackageInfoFlags) Method

Definition

As a guiding principle:

[Android.Runtime.Register("getPermissionInfo", "(Ljava/lang/String;I)Landroid/content/pm/PermissionInfo;", "GetGetPermissionInfo_Ljava_lang_String_IHandler")]
public abstract Android.Content.PM.PermissionInfo? GetPermissionInfo(string permName, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getPermissionInfo", "(Ljava/lang/String;I)Landroid/content/pm/PermissionInfo;", "GetGetPermissionInfo_Ljava_lang_String_IHandler")>]
abstract member GetPermissionInfo : string * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.PermissionInfo

Parameters

permName
String

The fully qualified name (i.e. com.google.permission.LOGIN) of the permission you are interested in.

flags
PackageInfoFlags

Additional option flags to modify the data returned.

Returns

Returns a PermissionInfo containing information about the permission.

Attributes

Exceptions

Remarks

As a guiding principle:

GET_ flags are used to request additional data that may have been elided to save wire space.

MATCH_ flags are used to include components or packages that would have otherwise been omitted from a result set by current system state.

Java documentation for android.content.pm.PackageManager.getPermissionInfo(java.lang.String, int).

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