MockPackageManager.CheckPermission(String, String) Method

Definition

Check whether a particular package has been granted a particular permission.

[Android.Runtime.Register("checkPermission", "(Ljava/lang/String;Ljava/lang/String;)I", "GetCheckPermission_Ljava_lang_String_Ljava_lang_String_Handler")]
public override Android.Content.PM.Permission CheckPermission (string? permName, string? pkgName);
[<Android.Runtime.Register("checkPermission", "(Ljava/lang/String;Ljava/lang/String;)I", "GetCheckPermission_Ljava_lang_String_Ljava_lang_String_Handler")>]
override this.CheckPermission : string * string -> Android.Content.PM.Permission

Parameters

permName
String

The name of the permission you are checking for.

pkgName
String

The name of the package you are checking against.

Returns

Attributes

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