Android.Content.Context.CheckCallingOrSelfPermission Method
Determine whether the calling process of an IPC or you have been granted a particular permission.

Syntax

[Android.Runtime.Register("checkCallingOrSelfPermission", "(Ljava/lang/String;)I", "GetCheckCallingOrSelfPermission_Ljava_lang_String_Handler")]
public abstract Android.Content.PM.Permission CheckCallingOrSelfPermission (string permission)

See Also

Android.Content.PM.PackageManager.CheckPermission(string, System.String)
Context.CheckPermission(string, System.Int32, System.Int32)
Context.CheckCallingPermission(string)

Parameters

permission
The name of the permission being checked.

Returns

Documentation for this section has not yet been entered.

Remarks

Determine whether the calling process of an IPC or you have been granted a particular permission. This is the same as Context.CheckCallingPermission(string), except it grants your own permissions if you are not currently processing an IPC. Use with care!

[Android Documentation]

Requirements

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