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.
V2TIMSDKListener

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

Member Function Documentation

◆ OnConnecting()

virtual void OnConnecting ( )
inlinevirtual

The SDK is connecting to the CVM instance

◆ OnConnectSuccess()

virtual void OnConnectSuccess ( )
inlinevirtual

The SDK is successfully connected to the CVM instance

◆ OnConnectFailed()

virtual void OnConnectFailed ( int  error_code,
const V2TIMString error_message 
)
inlinevirtual

The SDK failed to connect to the CVM instance

◆ OnKickedOffline()

virtual void OnKickedOffline ( )
inlinevirtual

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

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

The profile of the current user was updated

◆ OnUserStatusChanged()

virtual void OnUserStatusChanged ( const V2TIMUserStatusVector userStatusList)
inlinevirtual

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

virtual void OnUserInfoChanged ( const V2TIMUserFullInfoVector userInfoList)
inlinevirtual

User profile change notification

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

◆ OnAllReceiveMessageOptChanged()

virtual void OnAllReceiveMessageOptChanged ( const V2TIMReceiveMessageOptInfo receiveMessageOptInfo)
inlinevirtual

The message receiving options for all conversations changed.

◆ onExperimentalNotify()

virtual void onExperimentalNotify ( const V2TIMString key,
const V2TIMString param 
)
inlinevirtual

Experimental event notification