Udostępnij za pośrednictwem


ContentResolver.ReleasePersistableUriPermission(Uri, ActivityFlags) Method

Definition

Relinquish a persisted URI permission grant.

[Android.Runtime.Register("releasePersistableUriPermission", "(Landroid/net/Uri;I)V", "GetReleasePersistableUriPermission_Landroid_net_Uri_IHandler")]
public virtual void ReleasePersistableUriPermission (Android.Net.Uri uri, Android.Content.ActivityFlags modeFlags);
[<Android.Runtime.Register("releasePersistableUriPermission", "(Landroid/net/Uri;I)V", "GetReleasePersistableUriPermission_Landroid_net_Uri_IHandler")>]
abstract member ReleasePersistableUriPermission : Android.Net.Uri * Android.Content.ActivityFlags -> unit
override this.ReleasePersistableUriPermission : Android.Net.Uri * Android.Content.ActivityFlags -> unit

Parameters

uri
Uri
modeFlags
ActivityFlags
Attributes

Remarks

Relinquish a persisted URI permission grant. The URI must have been previously made persistent with #takePersistableUriPermission(Uri, int). Any non-persistent grants to the calling package will remain intact.

Java documentation for android.content.ContentResolver.releasePersistableUriPermission(android.net.Uri, int).

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

See also