Class PresentationConnection
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalPresentationConnection 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.
[Value("PresentationConnection")]
public class PresentationConnection : EventTarget
- Inheritance
-
PresentationConnection
- Inherited Members
Remarks
Constructors
PresentationConnection()
public PresentationConnection()
Properties
BinaryType
NOTE
ExperimentalbinaryType IDL attribute MUST be set to the string "arraybuffer". Upon getting, the attribute MUST return its most recent value (the value it was last set as). Upon setting, the user agent MUST set the IDL attribute to the new value.
[Value("binaryType")]
public BinaryType BinaryType { get; set; }
Property Value
Remarks
NOTE
The
binaryTypeattribute allows authors to control how binary data is exposed to scripts. By setting the attribute to"blob", binary data is returned inBlobform; by setting it to"arraybuffer", it is returned in ArrayBuffer form. The attribute defaults to"arraybuffer". This attribute has no effect on data sent in a string form.
Id
NOTE
Experimentalid attribute specifies the presentation identifier of a presentation connection.
[Value("id")]
public string Id { get; }
Property Value
Remarks
Onclose
[Value("onclose")]
public EventHandlerNonNull Onclose { get; set; }
Property Value
Onconnect
[Value("onconnect")]
public EventHandlerNonNull Onconnect { get; set; }
Property Value
Onmessage
[Value("onmessage")]
public EventHandlerNonNull Onmessage { get; set; }
Property Value
Onterminate
[Value("onterminate")]
public EventHandlerNonNull Onterminate { get; set; }
Property Value
State
NOTE
Experimentalstate attribute reflects the presentation connection's current state. Depending on the current PresentationConnectionState, the state attribute can hold one of the following values.
[Value("state")]
public PresentationConnectionState State { get; }
Property Value
Remarks
Url
NOTE
Experimentalurl read-only property of thePresentationConnection interface returns the URL used to create or
reconnect to the presentation.
[Value("url")]
public string Url { get; }
Property Value
- string
A string containing a URL.
Remarks
Methods
Close()
NOTE
Experimentalclose() method is called on a PresentationConnection, the {{Glossary("user agent")}} begins the process of closing the connection by sending an empty closeMessage with the closeReason set to closed.
[Value("close")]
public GlobalObject.Undefined Close()
Returns
Remarks
Send(Blob)
NOTE
Experimentalsend() method of thePresentationConnection interface tells a controlling browsing context to
send binary or text data to a presenting browsing context.
[Value("send")]
public GlobalObject.Undefined Send(Blob data)
Parameters
dataBlob
Returns
Remarks
Send(ArrayBuffer)
NOTE
Experimentalsend() method of thePresentationConnection interface tells a controlling browsing context to
send binary or text data to a presenting browsing context.
[Value("send")]
public GlobalObject.Undefined Send(ArrayBuffer data)
Parameters
dataArrayBuffer
Returns
Remarks
Send(Union223)
NOTE
Experimentalsend() method of thePresentationConnection interface tells a controlling browsing context to
send binary or text data to a presenting browsing context.
[Value("send")]
public GlobalObject.Undefined Send(Union223 data)
Parameters
dataUnion223
Returns
Remarks
Send(string)
NOTE
Experimentalsend() method of thePresentationConnection interface tells a controlling browsing context to
send binary or text data to a presenting browsing context.
[Value("send")]
public GlobalObject.Undefined Send(string message)
Parameters
messagestring
Returns
Remarks
Terminate()
NOTE
Experimentalterminate() method is called on a PresentationConnection, the {{Glossary("user agent")}} begins the process of terminating the presentation. The exact process differs depending on whether terminate() is called in the controlling or the presenting context.
[Value("terminate")]
public GlobalObject.Undefined Terminate()