DocumentsProvider.GetDocumentStreamTypes(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.
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.