Megosztás a következőn keresztül:


DocumentsContract.ExtraInitialUri Field

Definition

Sets the desired initial location visible to user when file chooser is shown.

[Android.Runtime.Register("EXTRA_INITIAL_URI", ApiSince=26)]
public const string ExtraInitialUri;
[<Android.Runtime.Register("EXTRA_INITIAL_URI", ApiSince=26)>]
val mutable ExtraInitialUri : string

Field Value

Attributes

Remarks

Sets the desired initial location visible to user when file chooser is shown.

Applicable to Intent with actions: <ul> <li>Intent#ACTION_OPEN_DOCUMENT</li> <li>Intent#ACTION_CREATE_DOCUMENT</li> <li>Intent#ACTION_OPEN_DOCUMENT_TREE</li> </ul>

Location should specify a document URI or a tree URI with document ID. If this URI identifies a non-directory, document navigator will attempt to use the parent of the document as the initial location.

The initial location is system specific if this extra is missing or document navigator failed to locate the desired initial location.

Java documentation for android.provider.DocumentsContract.EXTRA_INITIAL_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