- All Superinterfaces:
EventTarget,MediaList
Based on W3C's MediaQueryList
interface.
For backwards compatibility, it extends the deprecated MediaList
interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidappendMedium(String newMedium) Deprecated.default voiddeleteMedium(String oldMedium) Deprecated.getMedia()Get the serialized form of this media query list.default StringDeprecated.default voidsetMediaText(String mediaText) Deprecated.Methods inherited from interface org.w3c.dom.events.EventTarget
addEventListener, dispatchEvent, removeEventListener
-
Method Details
-
getMedia
String getMedia()Get the serialized form of this media query list.- Returns:
- the serialized form of this media query list.
-
getMediaText
Deprecated.usegetMedia().Get the serialized form of this media query list.- Specified by:
getMediaTextin interfaceMediaList- Returns:
- the serialized form of this media query list.
-
setMediaText
Deprecated.Sets themediaattribute, which the current specification defines to be read-only.- Specified by:
setMediaTextin interfaceMediaList- Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is read-only.
-
deleteMedium
Deprecated.Deletes a medium from this list, which the current specification does not support.- Specified by:
deleteMediumin interfaceMediaList- Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is read-only.
-
appendMedium
Deprecated.Appends a medium to this list, which the current specification does not support.- Specified by:
appendMediumin interfaceMediaList- Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is read-only.
-
getMedia().