ContentType.fromMimeType

Tries to find a content type based on the mime type name. Since 2.18

class ContentType
static
string
fromMimeType
(
string mimeType
)

Parameters

mimeType string

a mime type string

Return Value

Type: string

Newly allocated string with content type or NULL. Free with g_free(). [allow-none]

Meta