你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ChatAdapterSubscribers interface
可订阅的聊天复合事件。
方法
方法详细信息
off("error", (e: AdapterError) => void)
取消订阅“error”事件的函数。
function off(event: "error", listener: (e: AdapterError) => void)
参数
- event
-
"error"
- listener
-
(e: AdapterError) => void
off("messageRead", MessageReadListener)
取消订阅“messageRead”事件的函数。
function off(event: "messageRead", listener: MessageReadListener)
参数
- event
-
"messageRead"
- listener
- MessageReadListener
off("messageReceived", MessageReceivedListener)
取消订阅“messageReceived”事件的函数。
function off(event: "messageReceived", listener: MessageReceivedListener)
参数
- event
-
"messageReceived"
- listener
- MessageReceivedListener
off("messageSent", MessageReceivedListener)
取消订阅“messageSent”事件的函数。
function off(event: "messageSent", listener: MessageReceivedListener)
参数
- event
-
"messageSent"
- listener
- MessageReceivedListener
off("participantsAdded", ParticipantsAddedListener)
取消订阅“participantsAdded”事件的函数。
function off(event: "participantsAdded", listener: ParticipantsAddedListener)
参数
- event
-
"participantsAdded"
- listener
- ParticipantsAddedListener
off("participantsRemoved", ParticipantsRemovedListener)
“participantsRemoved”事件的 Unsubscribe 函数。
function off(event: "participantsRemoved", listener: ParticipantsRemovedListener)
参数
- event
-
"participantsRemoved"
- listener
- ParticipantsRemovedListener
off("topicChanged", TopicChangedListener)
取消订阅“topicChanged”事件的函数。
function off(event: "topicChanged", listener: TopicChangedListener)
参数
- event
-
"topicChanged"
- listener
- TopicChangedListener
on("error", (e: AdapterError) => void)
“error”事件的 Subscribe 函数。
function on(event: "error", listener: (e: AdapterError) => void)
参数
- event
-
"error"
- listener
-
(e: AdapterError) => void
on("messageRead", MessageReadListener)
“messageRead”事件的 Subscribe 函数。
function on(event: "messageRead", listener: MessageReadListener)
参数
- event
-
"messageRead"
- listener
- MessageReadListener
on("messageReceived", MessageReceivedListener)
“messageReceived”事件的 Subscribe 函数。
function on(event: "messageReceived", listener: MessageReceivedListener)
参数
- event
-
"messageReceived"
- listener
- MessageReceivedListener
on("messageSent", MessageReceivedListener)
“messageSent”事件的 Subscribe 函数。
function on(event: "messageSent", listener: MessageReceivedListener)
参数
- event
-
"messageSent"
- listener
- MessageReceivedListener
on("participantsAdded", ParticipantsAddedListener)
“participantsAdded”事件的 Subscribe 函数。
function on(event: "participantsAdded", listener: ParticipantsAddedListener)
参数
- event
-
"participantsAdded"
- listener
- ParticipantsAddedListener
on("participantsRemoved", ParticipantsRemovedListener)
“participantsRemoved”事件的 Subscribe 函数。
function on(event: "participantsRemoved", listener: ParticipantsRemovedListener)
参数
- event
-
"participantsRemoved"
- listener
- ParticipantsRemovedListener
on("topicChanged", TopicChangedListener)
“topicChanged”事件的 Subscribe 函数。
function on(event: "topicChanged", listener: TopicChangedListener)
参数
- event
-
"topicChanged"
- listener
- TopicChangedListener