MediaQueryList class
MediaQueryList class
A MediaQueryList object stores information on a media query applied to a document, with support for both immediate and event-driven matching against the state of the document. See CSSOM View Module specification:
Inheritance: MediaQueryList
→
EventTarget
→
DOMObject
The MediaQueryList type exposes the following members:
Properties
Property | Description |
---|---|
document | Context object’s associated document. |
media | A string representing a serialized media query. |
matches | A boolean value that returns true if the document currently matches the media query list, or false if not. |
Methods
Method | Description |
---|---|
add_event_listener | This method allows the registration of event listeners on the event target. |
add_event_listener | This method allows the registration of event listeners on the event target. |
remove_event_listener | This method allows the removal of event listeners from the event target. If an IEventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions.Event Listeners can never be invoked after being removed. |
remove_event_listener | This method allows the removal of event listeners from the event target. If an IEventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions.Event Listeners can never be invoked after being removed. |
get_platform_type | This method is used to retrieve ECMAScript object Type. |
dispatch_event | This method allows the dispatch of events into the implementations event model. |
add_listener | Add MediaQueryList matches state change event listener. |
remove_listener | Remove MediaQueryList matches state change event listener. |
See Also
- module
aspose.svg.window
- class
DOMObject
- class
EventTarget
- class
IEventListener
- class
MediaQueryList