Added in API level 29

MimeTypeInfo


class MimeTypeInfo
kotlin.Any
   ↳ android.content.ContentResolver.MimeTypeInfo

Detailed description of a specific MIME type, including an icon and label that describe the type.

Summary

Public methods
CharSequence

Return a content description for this MIME type.

Icon

Return a visual representation of this MIME type.

CharSequence

Return a textual representation of this MIME type.

Public methods

getContentDescription

Added in API level 29
fun getContentDescription(): CharSequence

Return a content description for this MIME type.

Return
CharSequence This value cannot be null.

getIcon

Added in API level 29
fun getIcon(): Icon

Return a visual representation of this MIME type. This can be styled using Icon#setTint(int) to match surrounding UI.

Return
Icon This value cannot be null.

getLabel

Added in API level 29
fun getLabel(): CharSequence

Return a textual representation of this MIME type.

Return
CharSequence This value cannot be null.