W3cubDocs

/Haxe JavaScript

MediaQueryList

package js.html

@:native("MediaQueryList") Available on js

A MediaQueryList object maintains a list of media queries on a document, and handles sending notifications to listeners when the media queries on the document change.

Documentation MediaQueryList by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read only matches:Bool

read only media:String

Methods

addListener (listener:MediaQueryList ‑> Void):Void

removeListener (listener:MediaQueryList ‑> Void):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/MediaQueryList.html