The state
attribute reflects the presentation connection's current state. Depending on the current PresentationConnectionState
, the state
attribute can hold one of the following values.
connecting
: The user agent is attempting to establish a presentation connection with the destination browsing context. This is the initial state when aPresentationConnection
object is created.connected
: The presentation connection is established and communication is possible.closed
: The presentation connection has been closed or could not be opened. The connection may be reopened by callingreconnect
(). No communication is possible in this state.terminated
: The receiving browsing context has terminated. Any presentation connection to that presentation has also terminated and cannot be reopened. No communication is possible.
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Chrome
Full support 48 |
Edge
Full support ≤79 |
Firefox Full support 51 Full support 51 Disabled' From version 51: this feature is behind the |
IE
No support No |
Opera
Full support Yes |
Safari
? |
WebView Android
No support No |
Chrome Android
Full support 48 |
Firefox Android Full support 51 Full support 51 Disabled' From version 51: this feature is behind the |
Opera Android
Full support Yes |
Safari iOS
? |
Samsung Internet Android
Full support 5.0 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Experimental. Expect behavior to change in the future.'
- Experimental. Expect behavior to change in the future.
- User must explicitly enable this feature.'
- User must explicitly enable this feature.
PresentationConnection.state by Mozilla Contributors is licensed under CC-BY-SA 2.5.