Export (0) Print
Expand All

Methods

This section describes the methods for media query listeners.

In this section

TopicDescription

matchMedia

Accepts a string containing one or more media queries, and returns a MediaQueryList object.

addListener

Adds the callback function to the list of listeners for the MediaQueryList object. The function is called whenever the evaluation of the media query changes.

removeListener

Removes the given callback function from the list of listeners for this MediaQueryList object.

handleChange

Assigns a media query list that is used to trigger a callback from the MediaQueryListListener.

 

 

 

Show:
© 2014 Microsoft