ItemMediaType enum

Allowed media types for resources in EPUB3.

Reference taken from https://www.w3.org/TR/epub/#sec-core-media-types

Inheritance
Available extensions

Values

gif → const ItemMediaType

media-type for GIF images.

const ItemMediaType('image/gif')
jpeg → const ItemMediaType

media-type for JPEG and JPG images.

const ItemMediaType('image/jpeg')
png → const ItemMediaType

media-type for PNG images.

const ItemMediaType('image/png')
svg → const ItemMediaType

media-type for SVG images.

const ItemMediaType('image/svg+xml')
webp → const ItemMediaType

media-type for WebP images.

const ItemMediaType('image/webp')
audioMP3 → const ItemMediaType

media-type for MP3 audio (mpeg).

const ItemMediaType('audio/mpeg')
audioMP4 → const ItemMediaType

media-type for AAC LC audio using MP4 container.

const ItemMediaType('audio/mp4')
audioOpusOGG → const ItemMediaType

media-type for OPUS audio using OGG container.

const ItemMediaType('audio/ogg; codecs=opus')
css → const ItemMediaType

media-type for CSS Style Sheets.

const ItemMediaType('text/css')
fontTTf → const ItemMediaType

media-type for TrueType fonts.

const ItemMediaType('font/ttf')
fontOtfTtf → const ItemMediaType

media-type for TrueType and OpenType fonts

const ItemMediaType('application/font-sfnt')
fontOtf → const ItemMediaType

media-type for OpenType fonts.

const ItemMediaType('font/otf')
fontOtfVnd → const ItemMediaType

media-type for OpenType fonts.

const ItemMediaType('application/vnd.ms-opentype')
fontWoffApplication → const ItemMediaType

media-type for WOFF fonts.

const ItemMediaType('application/font-woff')
fontWoff → const ItemMediaType

media-type for WOFF fonts.

const ItemMediaType('application/font-woff')
fontWoff2 → const ItemMediaType

media-type for WOFF2 fonts.

const ItemMediaType('font/woff2')
xhtml → const ItemMediaType

media-type for HTML documents that use the XML syntax (EPUB text content).

const ItemMediaType('application/xhtml+xml')
javascript → const ItemMediaType

media-type for scripts.

const ItemMediaType('application/javascript')
script → const ItemMediaType

media-type for scripts.

const ItemMediaType('text/javascript')
ecmascript → const ItemMediaType

media-type for scripts.

const ItemMediaType('application/ecmascript')
ncx → const ItemMediaType

media-type for the legacy NCX.

const ItemMediaType('application/x-dtbncx+xml')
mediaOverlay → const ItemMediaType

media-type for EPUB media overlay documents.

const ItemMediaType('application/smil+xml')
textToSpechPLS → const ItemMediaType

media-type for the Text-to-Speech (TTS) Pronunciation lexicons.

const ItemMediaType('application/pls+xml')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
Representation in XML items.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromValue(String value) ItemMediaType
Create ItemMediaType enum from its representation in XML.

Constants

values → const List<ItemMediaType>
A constant List of the values in this enum, in order of their declaration.