-
Notifications
You must be signed in to change notification settings - Fork 2
qchat.instance.QChatInstanceModule
qchat/instance.QChatInstanceModule
-
EventEmitter
<QChatInstanceEvents
>↳
QChatInstanceModule
- eventNames
- listeners
- listenerCount
- emit
- on
- addListener
- once
- removeListener
- off
- removeAllListeners
- initEventHandlers
- init
- cleanup
- login
- logout
- kickOtherClients
▸ eventNames(): keyof QChatInstanceEvents
[]
Return an array listing the events for which the emitter has registered listeners.
keyof QChatInstanceEvents
[]
EventEmitter.eventNames
node_modules/eventemitter3/index.d.ts:15
▸ listeners<T
>(event
): (...args
: ArgumentMap
<QChatInstanceEvents
>[Extract
<T
, keyof QChatInstanceEvents
>]) => void
[]
Return the listeners registered for a given event.
Name | Type |
---|---|
T |
extends keyof QChatInstanceEvents
|
Name | Type |
---|---|
event |
T |
(...args
: ArgumentMap
<QChatInstanceEvents
>[Extract
<T
, keyof QChatInstanceEvents
>]) => void
[]
EventEmitter.listeners
node_modules/eventemitter3/index.d.ts:20
▸ listenerCount(event
): number
Return the number of listeners listening to a given event.
Name | Type |
---|---|
event |
keyof QChatInstanceEvents
|
number
EventEmitter.listenerCount
node_modules/eventemitter3/index.d.ts:27
▸ emit<T
>(event
, ...args
): boolean
Calls each of the listeners registered for a given event.
Name | Type |
---|---|
T |
extends keyof QChatInstanceEvents
|
Name | Type |
---|---|
event |
T |
...args |
ArgumentMap <QChatInstanceEvents >[Extract <T , keyof QChatInstanceEvents >] |
boolean
EventEmitter.emit
node_modules/eventemitter3/index.d.ts:32
▸ on<T
>(event
, fn
, context?
): QChatInstanceModule
Add a listener for a given event.
Name | Type |
---|---|
T |
extends keyof QChatInstanceEvents
|
Name | Type |
---|---|
event |
T |
fn |
(...args : ArgumentMap <QChatInstanceEvents >[Extract <T , keyof QChatInstanceEvents >]) => void
|
context? |
any |
EventEmitter.on
node_modules/eventemitter3/index.d.ts:40
▸ addListener<T
>(event
, fn
, context?
): QChatInstanceModule
Name | Type |
---|---|
T |
extends keyof QChatInstanceEvents
|
Name | Type |
---|---|
event |
T |
fn |
(...args : ArgumentMap <QChatInstanceEvents >[Extract <T , keyof QChatInstanceEvents >]) => void
|
context? |
any |
EventEmitter.addListener
node_modules/eventemitter3/index.d.ts:45
▸ once<T
>(event
, fn
, context?
): QChatInstanceModule
Add a one-time listener for a given event.
Name | Type |
---|---|
T |
extends keyof QChatInstanceEvents
|
Name | Type |
---|---|
event |
T |
fn |
(...args : ArgumentMap <QChatInstanceEvents >[Extract <T , keyof QChatInstanceEvents >]) => void
|
context? |
any |
EventEmitter.once
node_modules/eventemitter3/index.d.ts:54
▸ removeListener<T
>(event
, fn?
, context?
, once?
): QChatInstanceModule
Remove the listeners of a given event.
Name | Type |
---|---|
T |
extends keyof QChatInstanceEvents
|
Name | Type |
---|---|
event |
T |
fn? |
(...args : ArgumentMap <QChatInstanceEvents >[Extract <T , keyof QChatInstanceEvents >]) => void
|
context? |
any |
once? |
boolean |
EventEmitter.removeListener
node_modules/eventemitter3/index.d.ts:63
▸ off<T
>(event
, fn?
, context?
, once?
): QChatInstanceModule
Name | Type |
---|---|
T |
extends keyof QChatInstanceEvents
|
Name | Type |
---|---|
event |
T |
fn? |
(...args : ArgumentMap <QChatInstanceEvents >[Extract <T , keyof QChatInstanceEvents >]) => void
|
context? |
any |
once? |
boolean |
EventEmitter.off
node_modules/eventemitter3/index.d.ts:69
▸ removeAllListeners(event?
): QChatInstanceModule
Remove all listeners, or those of the specified event.
Name | Type |
---|---|
event? |
keyof QChatInstanceEvents
|
EventEmitter.removeAllListeners
node_modules/eventemitter3/index.d.ts:79
▸ initEventHandlers(): void
注册全局回调
void
ts/qchat/instance.ts:32
▸ init(param
): boolean
Fn
init(param: QChatInitParam) 圈组模块初始化(SDK初始化时调用一次) @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatInitParam |
boolean
boolean 模块加载结果
ts/qchat/instance.ts:40
▸ cleanup(param
): boolean
Fn
cleanup(param: QChatCleanupParam) 圈组模块清理(卸载SDK时调用一次) @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatCleanupParam |
boolean
boolean 模块清理结果
ts/qchat/instance.ts:49
▸ login(param
): Promise
<QChatLoginResp
>
Fn
login(param: QChatLoginParam) 登录圈组 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatLoginParam |
Promise
<QChatLoginResp
>
void
ts/qchat/instance.ts:58
▸ logout(param
): Promise
<QChatLogoutResp
>
Fn
logout(param: QChatLogoutParam) 登出圈组 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatLogoutParam |
Promise
<QChatLogoutResp
>
void
ts/qchat/instance.ts:77
▸ kickOtherClients(param
): Promise
<QChatKickResp
>
Fn
kickOtherClients(param: QChatKickParam) 踢掉自己指定的一个其他端 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatKickParam |
Promise
<QChatKickResp
>
void
ts/qchat/instance.ts:96
• instance: any
ts/qchat/instance.ts:26
• new QChatInstanceModule()
EventEmitter<QChatInstanceEvents>.constructor
ts/qchat/instance.ts:27
- chatroom/chatroom
- chatroom_def/chatroom_def
- nim/client
- nim/data_sync
- nim/friend
- nim/global
- nim/msglog
- nim/nos
- nim/online_session
- nim/pass_through_proxy
- nim/plugin
- nim/session
- nim/subscribe_event
- nim/super_team
- nim/sysmsg
- nim/talk
- nim/talkex
- nim/team
- nim/tool
- nim/user
- nim_def/client_def
- nim_def/data_sync_def
- nim_def/doc_trans_def
- nim_def/friend_def
- nim_def/global_def
- nim_def/msglog_def
- nim_def/nos_def
- nim_def/online_session_def
- nim_def/pass_through_proxy_def
- nim_def/plugin_def
- nim_def/session_def
- nim_def/subscribe_event_def
- nim_def/super_team_def
- nim_def/sysmsg_def
- nim_def/talk_def
- nim_def/talkex_def
- nim_def/team_def
- nim_def/tool_def
- nim_def/user_def
- node-nim
- qchat/attachment
- qchat/channel
- qchat/channel_category
- qchat/instance
- qchat/message
- qchat/role
- qchat/server
- qchat/system_notification
- qchat_def/attachment_def
- qchat_def/channel_def
- qchat_def/instance_def
- qchat_def/message_def
- qchat_def/public_def
- qchat_def/role_def
- qchat_def/server_def
- qchat_def/system_notification_def