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.

Public Member Functions

 V2TIMSDKListener ()
virtual ~V2TIMSDKListener ()
virtual void OnConnecting ()
virtual void OnConnectSuccess ()
virtual void OnConnectFailed (int error_code, const V2TIMString &error_message)
virtual void OnKickedOffline ()
virtual void OnUserSigExpired ()
virtual void OnSelfInfoUpdated (const V2TIMUserFullInfo &info)
virtual void OnUserStatusChanged (const V2TIMUserStatusVector &userStatusList)
virtual void OnUserInfoChanged (const V2TIMUserFullInfoVector &userInfoList)
virtual void OnAllReceiveMessageOptChanged (const V2TIMReceiveMessageOptInfo &receiveMessageOptInfo)
virtual void onExperimentalNotify (const V2TIMString &key, const V2TIMString &param)

Constructor & Destructor Documentation

◆ V2TIMSDKListener()

◆ ~V2TIMSDKListener()

virtual ~V2TIMSDKListener ( )

Member Function Documentation

◆ OnConnecting()

virtual void OnConnecting ( )

The SDK is connecting to the CVM instance

◆ OnConnectSuccess()

virtual void OnConnectSuccess ( )

The SDK is successfully connected to the CVM instance

◆ OnConnectFailed()

virtual void OnConnectFailed ( int  error_code,
const V2TIMString error_message 

The SDK failed to connect to the CVM instance

◆ OnKickedOffline()

virtual void OnKickedOffline ( )

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()

virtual void OnUserSigExpired ( )

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()

virtual void OnSelfInfoUpdated ( const V2TIMUserFullInfo info)

The profile of the current user was updated

◆ OnUserStatusChanged()

virtual void OnUserStatusChanged ( const V2TIMUserStatusVector userStatusList)

The status of a user changed.

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()

virtual void OnUserInfoChanged ( const V2TIMUserFullInfoVector userInfoList)

User profile change notification

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

◆ OnAllReceiveMessageOptChanged()

virtual void OnAllReceiveMessageOptChanged ( const V2TIMReceiveMessageOptInfo receiveMessageOptInfo)

The message receiving options for all conversations changed.

◆ onExperimentalNotify()

virtual void onExperimentalNotify ( const V2TIMString key,
const V2TIMString param 

Experimental event notification