Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# MimeTypeInfo

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/content/ContentResolver.MimeTypeInfo "View this page in Java")

```
class MimeTypeInfo
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.content.ContentResolver.MimeTypeInfo](https://developer.android.com/reference/kotlin/android/content/ContentResolver.MimeTypeInfo#) |

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

## Summary

| Public methods ||
|---|---|
| [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html) | `https://developer.android.com/reference/kotlin/android/content/ContentResolver.MimeTypeInfo#getContentDescription()()` Return a content description for this MIME type. |
| [Icon](https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#) | `https://developer.android.com/reference/kotlin/android/content/ContentResolver.MimeTypeInfo#getIcon()()` Return a visual representation of this MIME type. |
| [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html) | `https://developer.android.com/reference/kotlin/android/content/ContentResolver.MimeTypeInfo#getLabel()()` Return a textual representation of this MIME type. |

## Public methods

### getContentDescription

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getContentDescription(): CharSequence
```

Return a content description for this MIME type.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html` | This value cannot be `null`. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/view/View.html#setContentDescription(kotlin.CharSequence)`

### getIcon

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getIcon(): Icon
```

Return a visual representation of this MIME type. This can be styled using `https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#setTint(kotlin.Int)` to match surrounding UI.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#` | This value cannot be `null`. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#loadDrawable(android.content.Context)`
- `https://developer.android.com/reference/kotlin/android/widget/ImageView.html#setImageDrawable(android.graphics.drawable.Drawable)`

### getLabel

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getLabel(): CharSequence
```

Return a textual representation of this MIME type.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html` | This value cannot be `null`. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/widget/TextView.html#setText(kotlin.CharSequence)`