Android.Content.PM.PackageManager.GetPermissionInfo Method
Retrieve all of the information we know about a particular permission.

Syntax

[Android.Runtime.Register("getPermissionInfo", "(Ljava/lang/String;I)Landroid/content/pm/PermissionInfo;", "GetGetPermissionInfo_Ljava_lang_String_IHandler")]
public abstract PermissionInfo GetPermissionInfo (string name, [Android.Runtime.GeneratedEnum] PackageInfoFlags flags)

Parameters

name
The fully qualified name (i.e. com.google.permission.LOGIN) of the permission you are interested in.
flags
Additional option flags. Use PackageManager.GET_META_DATA to retrieve any meta-data associated with the permission.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html

Remarks

Retrieve all of the information we know about a particular permission.

Throws NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html if a permission with the given name cannot be found on the system.

[Android Documentation]

Requirements

Namespace: Android.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1