Context.CheckSelfPermission(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determine whether <em>you</em> have been granted a particular permission.
[Android.Runtime.Register("checkSelfPermission", "(Ljava/lang/String;)I", "GetCheckSelfPermission_Ljava_lang_String_Handler", ApiSince=23)]
public abstract Android.Content.PM.Permission CheckSelfPermission (string permission);
[<Android.Runtime.Register("checkSelfPermission", "(Ljava/lang/String;)I", "GetCheckSelfPermission_Ljava_lang_String_Handler", ApiSince=23)>]
abstract member CheckSelfPermission : string -> Android.Content.PM.Permission
Parameters
- permission
- String
The name of the permission being checked.
Returns
PackageManager#PERMISSION_GRANTED
if you have the
permission, or PackageManager#PERMISSION_DENIED
if not.
- Attributes
Remarks
Determine whether <em>you</em> have been granted a particular permission.
Java documentation for android.content.Context.checkSelfPermission(java.lang.String)
.
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.