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' 事件的函式。
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' 事件的函式。
function on(event: "error", listener: (e: AdapterError) => void)
參數
- event
-
"error"
- listener
-
(e: AdapterError) => void
on("messageRead", MessageReadListener)
訂閱 'messageRead' 事件的函式。
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' 事件的函式。
function on(event: "messageSent", listener: MessageReceivedListener)
參數
- event
-
"messageSent"
- listener
- MessageReceivedListener
on("participantsAdded", ParticipantsAddedListener)
'participantsAdded' 事件的訂閱函式。
function on(event: "participantsAdded", listener: ParticipantsAddedListener)
參數
- event
-
"participantsAdded"
- listener
- ParticipantsAddedListener
on("participantsRemoved", ParticipantsRemovedListener)
'participantsRemoved' 事件的訂閱函式。
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