public class JsMediaQueryList extends JsElementalMixinBase implements MediaQueryList
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsMediaQueryList() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(MediaQueryListListener listener)
Adds a new listener to the media query list.
|
String |
getMedia()
The serialized media query list.
|
boolean |
isMatches()
|
void |
removeListener(MediaQueryListListener listener)
|
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intAt, length
numberAt
public final boolean isMatches()
MediaQueryList
isMatches
in interface MediaQueryList
public final String getMedia()
MediaQueryList
getMedia
in interface MediaQueryList
public final void addListener(MediaQueryListListener listener)
MediaQueryList
Adds a new listener to the media query list. If the specified listener is already in the list, this method has no effect.
listener
MediaQueryListListener
to invoke when the media query's evaluated result changes.addListener
in interface MediaQueryList
public final void removeListener(MediaQueryListListener listener)
MediaQueryList
Removes a listener from the media query list. Does nothing if the specified listener isn't already in the list.
listener
MediaQueryListListener
to stop calling on changes to the media query's evaluated result.removeListener
in interface MediaQueryList
Copyright © 2016. All rights reserved.