toggle menu
micro_utils.dokka
0.23.0
common
switch theme
search in API
micro_utils.dokka
/
dev.inmo.micro_utils.mime_types
Package-level
declarations
Types
Functions
Properties
Types
Custom
Mime
Type
Link copied to clipboard
data
class
CustomMimeType
(
val
raw
:
String
)
:
MimeType
Known
Mime
Types
Link copied to clipboard
@
Serializable
(
with
=
MimeTypeSerializer::class
)
sealed
class
KnownMimeTypes
:
MimeType
Mime
Type
Link copied to clipboard
@
Serializable
(
with
=
MimeTypeSerializer::class
)
interface
MimeType
Mime
Type
Serializer
Link copied to clipboard
@
Serializer
(
forClass
=
MimeType::class
)
object
MimeTypeSerializer
:
KSerializer
<
MimeType
>
Properties
known
Mime
Types
Map
Link copied to clipboard
val
knownMimeTypesMap
:
Map
<
String
,
MimeType
>
mime
Types
By
Extensions
Link copied to clipboard
val
mimeTypesByExtensions
:
Map
<
String
,
Array
<
MimeType
>
>
Functions
find
Builtin
Mime
Type
Link copied to clipboard
fun
findBuiltinMimeType
(
from
:
String
)
:
MimeType
?
get
Mime
Type
Link copied to clipboard
inline
fun
getMimeType
(
stringWithExtension
:
String
,
selector
:
(
Array
<
MimeType
>
)
->
MimeType
?
=
{ it.firstOrNull() }
)
:
MimeType
?
get
Mime
Type
Or
Any
Link copied to clipboard
inline
fun
getMimeTypeOrAny
(
stringWithExtension
:
String
,
selector
:
(
Array
<
MimeType
>
)
->
MimeType
?
=
{ it.firstOrNull() }
)
:
MimeType
mime
Type
Link copied to clipboard
fun
mimeType
(
raw
:
String
)
:
MimeType