Package-level declarations

Types

Link copied to clipboard
data class CustomMimeType(val raw: String) : MimeType
Link copied to clipboard
@Serializable(with = MimeTypeSerializer::class)
sealed class KnownMimeTypes : MimeType
Link copied to clipboard
@Serializable(with = MimeTypeSerializer::class)
interface MimeType
Link copied to clipboard
@Serializer(forClass = MimeType::class)
object MimeTypeSerializer : KSerializer<MimeType>

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
inline fun getMimeType(stringWithExtension: String, selector: (Array<MimeType>) -> MimeType? = { it.firstOrNull() }): MimeType?
Link copied to clipboard
inline fun getMimeTypeOrAny(stringWithExtension: String, selector: (Array<MimeType>) -> MimeType? = { it.firstOrNull() }): MimeType
Link copied to clipboard