🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

MediaType

Definition of common MediaTypes on the Android platform.

Source set: Android
public class MediaType public actual constructor(public val representation: String)

Definition of common MediaTypes on the Android platform.

Parameters

representation MimeType string that conforms to RFC 2045.

Functions

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int

toString

Source set: Android
override fun toString(): String

Members

Companion

Source set: Android
public actual companion object

Properties

Text

Source set: Android
public val Text: MediaType = MediaType("text/*")

PlainText

Source set: Android
public val PlainText: MediaType = MediaType("text/plain")

HtmlText

Source set: Android
public val HtmlText: MediaType = MediaType("text/html")

Image

Source set: Android
public val Image: MediaType = MediaType("image/*")

All

Source set: Android
public val All: MediaType = MediaType("*/*")
Source set: Common
@Suppress("KmpExperimentalMismatch") // actuals are not experimental
public class MediaType(representation: String)

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.

Properties

representation

Source set: Common
public val representation: String

How this MediaType is represented in a specific platform.

Members

Companion

Source set: Common
@Suppress("KmpExperimentalMismatch") // actuals are not experimental
    public companion object

Properties

Text

Source set: Common
public val Text: MediaType

Any type of text, html, stylized, or plain.

PlainText

Source set: Common
public val PlainText: MediaType

Plain text that's only decoded from its raw representation, does not define or carry any annotations.

HtmlText

Source set: Common
public val HtmlText: MediaType

Text that represents an HTML content.

Image

Source set: Common
public val Image: MediaType

Any type of image like PNG, JPEG, or GIFs.

All

Source set: Common
public val All: MediaType

Matches all content types.