DocumentsContract.EjectRoot(ContentResolver, Uri) Method

Definition

Ejects the given root.

[Android.Runtime.Register("ejectRoot", "(Landroid/content/ContentResolver;Landroid/net/Uri;)V", "", ApiSince=26)]
public static void EjectRoot (Android.Content.ContentResolver content, Android.Net.Uri rootUri);
[<Android.Runtime.Register("ejectRoot", "(Landroid/content/ContentResolver;Landroid/net/Uri;)V", "", ApiSince=26)>]
static member EjectRoot : Android.Content.ContentResolver * Android.Net.Uri -> unit

Parameters

content
ContentResolver
rootUri
Uri

root with Root#FLAG_SUPPORTS_EJECT to be ejected

Attributes

Remarks

Ejects the given root. It throws IllegalStateException when ejection failed.

Java documentation for android.provider.DocumentsContract.ejectRoot(android.content.ContentResolver, 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