Sdílet prostřednictvím


Context.RevokeSelfPermissionOnKill(String) Method

Definition

Triggers the asynchronous revocation of a runtime permission.

[Android.Runtime.Register("revokeSelfPermissionOnKill", "(Ljava/lang/String;)V", "GetRevokeSelfPermissionOnKill_Ljava_lang_String_Handler", ApiSince=33)]
public virtual void RevokeSelfPermissionOnKill (string permName);
[<Android.Runtime.Register("revokeSelfPermissionOnKill", "(Ljava/lang/String;)V", "GetRevokeSelfPermissionOnKill_Ljava_lang_String_Handler", ApiSince=33)>]
abstract member RevokeSelfPermissionOnKill : string -> unit
override this.RevokeSelfPermissionOnKill : string -> unit

Parameters

permName
String

The name of the permission to be revoked.

Attributes

Remarks

Triggers the asynchronous revocation of a runtime permission. If the permission is not currently granted, nothing happens (even if later granted by the user).

Java documentation for android.content.Context.revokeSelfPermissionOnKill(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.

Applies to