MediaType
-
Cmn
@ExperimentalFoundationApi
class MediaType -
android
class MediaType
Type identifier for contents that are transferable between applications or processes. Although mime type format was standardized, each platform is free to choose how they define media types. Therefore, this class has an expect modifier for different platforms to specify how they define certain common media types like Text, and Image.
Summary
Public companion properties |
||
|---|---|---|
MediaType |
Matches all content types. |
Cmn
android
|
MediaType |
Text that represents an HTML content. |
Cmn
android
|
MediaType |
Any type of image like PNG, JPEG, or GIFs. |
Cmn
android
|
MediaType |
Plain text that's only decoded from its raw representation, does not define or carry any annotations. |
Cmn
android
|
MediaType |
Any type of text, html, stylized, or plain. |
Cmn
android
|
Public functions |
||
|---|---|---|
open operator Boolean |
android
|
|
open Int |
hashCode() |
android
|
open String |
toString() |
android
|