Partager via


DocumentsProvider.GetDocumentStreamTypes(String, String) Method

Definition

Return a list of streamable MIME types matching the filter, which can be passed to #openTypedDocument(String, String, Bundle, CancellationSignal).

[Android.Runtime.Register("getDocumentStreamTypes", "(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;", "GetGetDocumentStreamTypes_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=24)]
public virtual string[]? GetDocumentStreamTypes (string? documentId, string? mimeTypeFilter);
[<Android.Runtime.Register("getDocumentStreamTypes", "(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;", "GetGetDocumentStreamTypes_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member GetDocumentStreamTypes : string * string -> string[]
override this.GetDocumentStreamTypes : string * string -> string[]

Parameters

documentId
String
mimeTypeFilter
String

Returns

String[]
Attributes

Remarks

Return a list of streamable MIME types matching the filter, which can be passed to #openTypedDocument(String, String, Bundle, CancellationSignal).

The default implementation returns a MIME type provided by #queryDocument(String, String[]) as long as it matches the filter and the document does not have the Document#FLAG_VIRTUAL_DOCUMENT flag set.

Virtual documents must have at least one streamable format.

Java documentation for android.provider.DocumentsProvider.getDocumentStreamTypes(java.lang.String, java.lang.String).

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