IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMSDKListenerabstract

Public Member Functions

void onConnecting ()
 
void onConnectSuccess ()
 
void onConnectFailed (int code, String error)
 
void onKickedOffline ()
 
void onUserSigExpired ()
 
void onSelfInfoUpdated (V2TIMUserFullInfo info)
 
void onUserStatusChanged (List< V2TIMUserStatus > userStatusList)
 
void onUserInfoChanged (List< V2TIMUserFullInfo > userInfoList)
 
void onAllReceiveMessageOptChanged (V2TIMReceiveMessageOptInfo receiveMessageOptInfo)
 
void onExperimentalNotify (String key, Object param)
 

Member Function Documentation

◆ onConnecting()

void onConnecting ( )
inline

The SDK is connecting to the CVM instance

◆ onConnectSuccess()

void onConnectSuccess ( )
inline

The SDK is successfully connected to the CVM instance

◆ onConnectFailed()

void onConnectFailed ( int  code,
String  error 
)
inline

The SDK failed to connect to the CVM instance

◆ onKickedOffline()

void onKickedOffline ( )
inline

The current user is kicked offline. When this occurs, you can notify the user on the UI and then call the login() function of V2TIMManager to log in the user again.

◆ onUserSigExpired()

void onUserSigExpired ( )
inline

The ticket expired while the user is online. When this occurs, you need to generate a new userSig and call the login() function of V2TIMManager to log in the user again.

◆ onSelfInfoUpdated()

void onSelfInfoUpdated ( V2TIMUserFullInfo  info)
inline

The profile of the current user was updated

◆ onUserStatusChanged()

void onUserStatusChanged ( List< V2TIMUserStatus userStatusList)
inline

The status of a user changed.

Attention
You will receive this callback in the following cases:
  1. The status (including online status and custom status) of a subscribed user changed.
  2. The status (including online status and custom status) of a friend changed (if the user has enabled friend status change notifications in the console).
  3. When an account is logged into multiple devices, and the custom status of one of the devices changes, all devices will receive this callback.

◆ onUserInfoChanged()

void onUserInfoChanged ( List< V2TIMUserFullInfo userInfoList)
inline

User profile change notification

Attention
This callback is triggered when the user profile of a subscribed (subscribeUserInfo) non-friend user has changed.

◆ onAllReceiveMessageOptChanged()

void onAllReceiveMessageOptChanged ( V2TIMReceiveMessageOptInfo  receiveMessageOptInfo)
inline

The message receiving options for all conversations changed.

◆ onExperimentalNotify()

void onExperimentalNotify ( String  key,
Object  param 
)
inline

Experimental event notification