SliceManager.RevokeSlicePermission(String, Uri) Method

Definition

Remove permissions to access a particular content provider Uri that were previously added with #grantSlicePermission for a specific target package.

[Android.Runtime.Register("revokeSlicePermission", "(Ljava/lang/String;Landroid/net/Uri;)V", "GetRevokeSlicePermission_Ljava_lang_String_Landroid_net_Uri_Handler", ApiSince=28)]
public virtual void RevokeSlicePermission (string toPackage, Android.Net.Uri uri);
[<Android.Runtime.Register("revokeSlicePermission", "(Ljava/lang/String;Landroid/net/Uri;)V", "GetRevokeSlicePermission_Ljava_lang_String_Landroid_net_Uri_Handler", ApiSince=28)>]
abstract member RevokeSlicePermission : string * Android.Net.Uri -> unit
override this.RevokeSlicePermission : string * Android.Net.Uri -> unit

Parameters

toPackage
String

The package you would like to allow to access the Uri.

uri
Uri

The Uri you would like to revoke access to.

Attributes

Remarks

Remove permissions to access a particular content provider Uri that were previously added with #grantSlicePermission for a specific target package. The given Uri will match all previously granted Uris that are the same or a sub-path of the given Uri. That is, revoking "content://foo/target" will revoke both "content://foo/target" and "content://foo/target/sub", but not "content://foo". It will not remove any prefix grants that exist at a higher level.

Java documentation for android.app.slice.SliceManager.revokeSlicePermission(java.lang.String, android.net.Uri).

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