Udostępnij za pośrednictwem


StorageVolume.CreateOpenDocumentTreeIntent Method

Definition

Builds an Intent#ACTION_OPEN_DOCUMENT_TREE to allow the user to grant access to any directory subtree (or entire volume) from the android.provider.DocumentsProviders available on the device.

[Android.Runtime.Register("createOpenDocumentTreeIntent", "()Landroid/content/Intent;", "", ApiSince=29)]
public Android.Content.Intent CreateOpenDocumentTreeIntent ();
[<Android.Runtime.Register("createOpenDocumentTreeIntent", "()Landroid/content/Intent;", "", ApiSince=29)>]
member this.CreateOpenDocumentTreeIntent : unit -> Android.Content.Intent

Returns

intent to Intent#ACTION_OPEN_DOCUMENT_TREE initially showing the contents of this StorageVolume

Attributes

Remarks

Builds an Intent#ACTION_OPEN_DOCUMENT_TREE to allow the user to grant access to any directory subtree (or entire volume) from the android.provider.DocumentsProviders available on the device. The initial location of the document navigation will be the root of this StorageVolume.

Note that the returned Intent simply suggests that the user picks this StorageVolume by default, but the user may select a different location. Callers must respect the user's chosen location, even if it is different from the originally requested location.

Java documentation for android.os.storage.StorageVolume.createOpenDocumentTreeIntent().

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