Android.Content.ContentResolver.TakePersistableUriPermission Method
Take a persistable URI permission grant that has been offered.

Syntax

[Android.Runtime.Register("takePersistableUriPermission", "(Landroid/net/Uri;I)V", "GetTakePersistableUriPermission_Landroid_net_Uri_IHandler")]
public virtual void TakePersistableUriPermission (Android.Net.Uri uri, [Android.Runtime.GeneratedEnum] ActivityFlags modeFlags)

See Also

ContentResolver.PersistedUriPermissions

Parameters

uri
Documentation for this section has not yet been entered.
modeFlags
Documentation for this section has not yet been entered.

Remarks

Take a persistable URI permission grant that has been offered. Once taken, the permission grant will be remembered across device reboots. Only URI permissions granted with Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION can be persisted. If the grant has already been persisted, taking it again will touch UriPermission.PersistedTime.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1