W3cubDocs

/Web APIs

PresentationAvailability

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

A PresentationAvailability object is associated with available presentation displays and represents the presentation display availability for a presentation request. If the controlling user agent can monitor the list of available presentation displays in the background (without a pending request to start()), the PresentationAvailability object MUST be implemented in a controlling browsing context.

The value attribute MUST return the last value it was set to. The value is updated by the monitor the list of available presentation displays algorithm.

The onchange attribute is an event handler whose corresponding event handler event type is change.

EventTarget PresentationAvailability

Instance properties

PresentationAvailability.value Read only Experimental

A boolean value indicating whether the given presentation display is available. The value attribute MUST return the last value it was set to.

Event

change Experimental

Indicates that the availability of the presentation display has changed.

Instance methods

None.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
PresentationAvailability 47 79 No No 34 No No 47 No 34 No 5.0
change_event 47 79 No No 34 No No 47 No 34 No 5.0
value 47 79 No No 34 No No 47 No 34 No 5.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability