MediaQueryList

@native @JSType
trait MediaQueryList extends Object

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.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def addListener(listener: MediaQueryListListener): Unit

Adds a new listener to the media query list. If the specified listener is already in the list, this method has no effect.

Adds a new listener to the media query list. If the specified listener is already in the list, this method has no effect.

def matches: Boolean

true if the document currently matches the media query list; otherwise false. Read only.

true if the document currently matches the media query list; otherwise false. Read only.

Removes a listener from the media query list. Does nothing if the specified listener isn't already in the list.

Removes a listener from the media query list. Does nothing if the specified listener isn't already in the list.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

var media: String

The serialized media query list

The serialized media query list