Context.RevokeUriPermission Context.RevokeUriPermission Method

Definition

Overloads

RevokeUriPermission(Uri, ActivityFlags) RevokeUriPermission(Uri, ActivityFlags)

M:Android.Content.Context.GrantUriPermission(System.String,Android.Net.Uri,Android.Net.Uri)

RevokeUriPermission(String, Uri, ActivityFlags) RevokeUriPermission(String, Uri, ActivityFlags)

RevokeUriPermission(Uri, ActivityFlags) RevokeUriPermission(Uri, ActivityFlags)

M:Android.Content.Context.GrantUriPermission(System.String,Android.Net.Uri,Android.Net.Uri)

[Android.Runtime.Register("revokeUriPermission", "(Landroid/net/Uri;I)V", "GetRevokeUriPermission_Landroid_net_Uri_IHandler")]
public abstract void RevokeUriPermission (Android.Net.Uri uri, Android.Content.ActivityFlags modeFlags);
abstract member RevokeUriPermission : Android.Net.Uri * Android.Content.ActivityFlags -> unit

Parameters

uri
Uri Uri

The Uri you would like to revoke access to.

modeFlags
ActivityFlags ActivityFlags

The desired access modes. Any combination of GrantReadUriPermission or GrantWriteUriPermission.

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.

RevokeUriPermission(String, Uri, ActivityFlags) RevokeUriPermission(String, Uri, ActivityFlags)

[Android.Runtime.Register("revokeUriPermission", "(Ljava/lang/String;Landroid/net/Uri;I)V", "GetRevokeUriPermission_Ljava_lang_String_Landroid_net_Uri_IHandler", ApiSince=26)]
public abstract void RevokeUriPermission (string toPackage, Android.Net.Uri uri, Android.Content.ActivityFlags modeFlags);
abstract member RevokeUriPermission : string * Android.Net.Uri * Android.Content.ActivityFlags -> unit

Parameters

toPackage
String String
uri
Uri Uri

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