Android.Test.Mock.MockContext.CheckPermission Method
Determine whether the given permission is allowed for a particular process and user ID running in the system.

Syntax

[Android.Runtime.Register("checkPermission", "(Ljava/lang/String;II)I", "GetCheckPermission_Ljava_lang_String_IIHandler")]
[return:Android.Runtime.GeneratedEnum]
public override Android.Content.PM.Permission CheckPermission (string permission, int pid, int uid)

Parameters

permission
The name of the permission being checked.
pid
The process ID being checked against. Must be > 0.
uid
The user ID being checked against. A uid of 0 is the root user, which will pass every permission check.

Returns

Documentation for this section has not yet been entered.

Remarks

Determine whether the given permission is allowed for a particular process and user ID running in the system.

[Android Documentation]

Requirements

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