Presentation API
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
- PresentationConnection.binaryType
- : 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
- PresentationConnection.id
- : Provides the presentation connection identifier.
- PresentationConnection.state
- : Returns the presentation connection's current state.
- PresentationConnection.url
- : Returns the URL used to create or reconnect to the presentation.
Instance methods
- PresentationConnection.close()
- : Closes the current connection and sends a PresentationConnectionCloseEvent to PresentationConnection/close event.
- PresentationConnection.send()
- : Sends either binary or text data between a controlling browsing context and a presenting browsing context.
- PresentationConnection.terminate()
- : Terminates the current connection and fires PresentationConnection/terminate_event event.
Events
- PresentationConnection/close_event
- : Fired when there is a call to PresentationConnection.close.
- PresentationConnection/connect_event
- : Fired when a presentation connection is established.
- PresentationConnection/message_event
- : Fired when there is a call to PresentationConnection.send.
- PresentationConnection/terminate_event
- : Fired when there is a call to PresentationConnection.terminate.
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
