Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. PresentationConnection

PresentationConnection

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

ThePresentationConnection interface of thePresentation API provides methods and properties for managing a single presentation. Eachpresentation connection is represented by aPresentationConnection object. Both thecontrolling user agent andreceiving user agentMUST implementPresentationConnection.

EventTarget PresentationConnection

Instance properties

PresentationConnection.binaryTypeExperimental

Returns either blob or arrayBuffer. When aPresentationConnection object is created, itsbinaryType IDL attributeMUST be set to the string"arraybuffer".

PresentationConnection.idRead onlyExperimental

Provides the presentation connection identifier.

PresentationConnection.stateRead onlyExperimental

Returns thepresentation connection's current state.

PresentationConnection.urlRead onlyExperimental

Returns the URL used to create or reconnect to the presentation.

Instance methods

PresentationConnection.close()Experimental

Closes the current connection and sends aPresentationConnectionCloseEvent toclose event.

PresentationConnection.send()Experimental

Sends either binary or text data between a controlling browsing context and a presenting browsing context.

PresentationConnection.terminate()Experimental

Terminates the current connection and firesterminate event.

Events

closeExperimental

Fired when there is a call toPresentationConnection.close().

connectExperimental

Fired when a presentation connection is established.

messageExperimental

Fired when there is a call toPresentationConnection.send().

terminateExperimental

Fired when there is a call toPresentationConnection.terminate().

Specifications

Specification
Presentation API
# interface-presentationconnection

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp