ContextWrapper.CheckCallingOrSelfPermission(String) Method

Definition

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

C#
[Android.Runtime.Register("checkCallingOrSelfPermission", "(Ljava/lang/String;)I", "GetCheckCallingOrSelfPermission_Ljava_lang_String_Handler")]
public override Android.Content.PM.Permission CheckCallingOrSelfPermission(string? 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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35