PresentationConnection
PresentationConnection 介面是 Presentation API 的一部分,提供了管理單個簡報的方法和屬性。每個 演示連線 都由一個 PresentationConnection 物件表示。控制使用者代理(controlling user agent)和接收使用者代理(receiving user agent)都必須實現 PresentationConnection。
例項屬性
PresentationConnection.binaryType實驗性-
返回 blob 或 arrayBuffer。當建立一個
PresentationConnection物件時,其binaryTypeIDL 屬性必須設定為字串"arraybuffer"。 PresentationConnection.id只讀 實驗性-
提供演示連線識別符號。
PresentationConnection.state只讀 實驗性-
返回演示連線的當前狀態。
PresentationConnection.url只讀 實驗性-
返回用於建立或重新連線到簡報的 URL。
例項方法
PresentationConnection.close()實驗性-
關閉當前連線並向
close事件傳送一個PresentationConnectionCloseEvent。 PresentationConnection.send()實驗性-
在控制瀏覽上下文和呈現瀏覽上下文之間傳送二進位制或文字資料。
PresentationConnection.terminate()實驗性-
終止當前連線並觸發
terminate事件。
事件
close實驗性-
在呼叫
PresentationConnection.close()時觸發。 connect實驗性-
在建立演示連線時觸發。
message實驗性-
在呼叫
PresentationConnection.send()時觸發。 terminate實驗性-
在呼叫
PresentationConnection.terminate()時觸發。
規範
| 規範 |
|---|
| Presentation API # interface-presentationconnection |
瀏覽器相容性
載入中…