web api interface
PresentationConnection
Limited availabilitySecure context
The PresentationConnection interface of the Presentation API provides methods and properties for managing a single presentation. Each presentation connection is represented by a PresentationConnection object. Both the controlling user agent and receiving user agent MUST implement PresentationConnection.
Instance properties
binaryTypeExperimental- : Returns either blob or arrayBuffer. When a
PresentationConnectionobject is created, itsbinaryTypeIDL attribute MUST be set to the string"arraybuffer".
- : Returns either blob or arrayBuffer. When a
idRead only Experimental- : Provides the presentation connection identifier.
stateRead only Experimental- : Returns the presentation connection’s current state.
urlRead only Experimental- : Returns the URL used to create or reconnect to the presentation.
Instance methods
close()Experimental- : Closes the current connection and sends a
PresentationConnectionCloseEventtocloseevent.
- : Closes the current connection and sends a
send()Experimental- : Sends either binary or text data between a controlling browsing context and a presenting browsing context.
terminate()Experimental- : Terminates the current connection and fires
terminateevent.
- : Terminates the current connection and fires
Events
closeExperimental- : Fired when there is a call to
PresentationConnection.close().
- : Fired when there is a call to
connectExperimental- : Fired when a presentation connection is established.
messageExperimental- : Fired when there is a call to
PresentationConnection.send().
- : Fired when there is a call to
terminateExperimental- : Fired when there is a call to
PresentationConnection.terminate().
- : Fired when there is a call to
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.