Share via


ContextWrapper.CheckCallingOrSelfPermission(String) Method

Definition

Determine whether the calling process of an IPC or you have been granted a particular permission.

[Android.Runtime.Register("checkCallingOrSelfPermission", "(Ljava/lang/String;)I", "GetCheckCallingOrSelfPermission_Ljava_lang_String_Handler")]
public override Android.Content.PM.Permission CheckCallingOrSelfPermission (string? permission);
[<Android.Runtime.Register("checkCallingOrSelfPermission", "(Ljava/lang/String;)I", "GetCheckCallingOrSelfPermission_Ljava_lang_String_Handler")>]
override this.CheckCallingOrSelfPermission : string -> Android.Content.PM.Permission

Parameters

permission
String

The name of the permission being checked.

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