-
Notifications
You must be signed in to change notification settings - Fork 2
nim_def.client_def.NIMClientAPI
nim_def/client_def.NIMClientAPI
- Init
- InitEventHandlers
- Login
- Logout
- Cleanup
- GetSDKConfig
- LoginCustomDataToJson
- GetLoginState
- Relogin
- KickOtherClient
- SetMultiportPushConfigAsync
- GetMultiportPushConfigAsync
- GetSDKVersion
- GetServerCurrentTime
- GetCurrentUserAccount
▸ Init(appKey
, appDataDir
, appInstallDir
, config
): boolean
Name | Type |
---|---|
appKey |
string |
appDataDir |
string |
appInstallDir |
string |
config |
SDKConfig |
boolean
ts/nim_def/client_def.ts:387
▸ InitEventHandlers(): void
void
ts/nim_def/client_def.ts:389
▸ Login(appKey
, account
, password
, cb
, jsonExtension
): boolean
Name | Type |
---|---|
appKey |
string |
account |
string |
password |
string |
cb |
null | LoginCallback
|
jsonExtension |
string |
boolean
ts/nim_def/client_def.ts:391
▸ Logout(logoutType
, cb
, jsonExtension
): void
Name | Type |
---|---|
logoutType |
NIMLogoutType |
cb |
null | LogoutCallback
|
jsonExtension |
string |
void
ts/nim_def/client_def.ts:393
▸ Cleanup(jsonExtension
): void
Name | Type |
---|---|
jsonExtension |
string |
void
ts/nim_def/client_def.ts:395
▸ GetSDKConfig(): SDKConfig
ts/nim_def/client_def.ts:397
▸ LoginCustomDataToJson(customData
): string
Name | Type |
---|---|
customData |
string |
string
ts/nim_def/client_def.ts:399
▸ GetLoginState(jsonExtension
): NIMLoginState
Name | Type |
---|---|
jsonExtension |
string |
ts/nim_def/client_def.ts:401
▸ Relogin(jsonExtension
): void
Name | Type |
---|---|
jsonExtension |
string |
void
ts/nim_def/client_def.ts:403
▸ KickOtherClient(clients
): void
Name | Type |
---|---|
clients |
string [] |
void
ts/nim_def/client_def.ts:405
▸ SetMultiportPushConfigAsync(switch_on
, cb
, jsonExtension
): void
Name | Type |
---|---|
switch_on |
boolean |
cb |
null | MultiportPushConfigCallback
|
jsonExtension |
string |
void
ts/nim_def/client_def.ts:407
▸ GetMultiportPushConfigAsync(cb
, jsonExtension
): void
Name | Type |
---|---|
cb |
null | MultiportPushConfigCallback
|
jsonExtension |
string |
void
ts/nim_def/client_def.ts:409
▸ GetSDKVersion(): string
string
ts/nim_def/client_def.ts:411
▸ GetServerCurrentTime(cb
, calcLocal
): void
Name | Type |
---|---|
cb |
null | GetCurrentServerTimeCallback
|
calcLocal |
boolean |
void
ts/nim_def/client_def.ts:413
▸ GetCurrentUserAccount(): string
string
ts/nim_def/client_def.ts:415
- 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