@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="MediaQueryList")
public class MediaQueryList
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
EventHandler |
onchange
The onchange property of the MediaQueryList interface is an event handler property representing a function that is invoked when the change event fires, i.e when the status of media query support changes.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MediaQueryList() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(EventListener callback)
The addListener() method of the MediaQueryList interface adds a listener to the MediaQueryListener that will run a custom callback function in response to the media query status changing.
|
boolean |
matches()
The matches read-only property of the MediaQueryList interface is a Boolean that returns true if the document currently matches the media query list, or false if not.
|
java.lang.String |
media()
The media read-only property of the MediaQueryList interface is a DOMString representing a serialized media query.
|
void |
removeListener(EventListener callback)
The removeListener() method of the MediaQueryList interface removes a listener from the MediaQueryListener.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListener@Nullable public EventHandler onchange
@JsProperty(name="matches") public boolean matches()
@JsProperty(name="media") @Nonnull public java.lang.String media()
public void addListener(@Nullable
EventListener callback)
public void removeListener(@Nullable
EventListener callback)