次の方法で共有


MockPackageManager.GetPermissionInfo(String, PackageInfoFlags) Method

Definition

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

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

Parameters

name
String

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

flags
PackageInfoFlags

Additional option flags. Use MetaData to retrieve any meta-data associated with the permission.

Returns

Attributes

Exceptions

Remarks

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