Share via


DocumentsProvider.GetDocumentType(String) Method

Definition

Return concrete MIME type of the requested document.

[Android.Runtime.Register("getDocumentType", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetDocumentType_Ljava_lang_String_Handler")]
public virtual string? GetDocumentType (string? documentId);
[<Android.Runtime.Register("getDocumentType", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetDocumentType_Ljava_lang_String_Handler")>]
abstract member GetDocumentType : string -> string
override this.GetDocumentType : string -> string

Parameters

documentId
String

Returns

Attributes

Exceptions

Remarks

Return concrete MIME type of the requested document. Must match the value of Document#COLUMN_MIME_TYPE for this document. The default implementation queries #queryDocument(String, String[]), so providers may choose to override this as an optimization.

Java documentation for android.provider.DocumentsProvider.getDocumentType(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