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>

Instance Methods

(void) - onConnecting
 
(void) - onConnectSuccess
 
(void) - onConnectFailed:err:
 
(void) - onKickedOffline
 
(void) - onUserSigExpired
 
(void) - onSelfInfoUpdated:
 
(void) - onUserStatusChanged:
 

Method Documentation

◆ onConnecting()

- (void) onConnecting
optional

The SDK is connecting to the CVM instance.

◆ onConnectSuccess()

- (void) onConnectSuccess
optional

The SDK is successfully connected to the CVM instance.

◆ onConnectFailed:err:()

- (void) onConnectFailed: (int)  code
err: (NSString *)  err 
optional

The SDK failed to connect to the CVM instance.

◆ onKickedOffline()

- (void) onKickedOffline
optional

The current user is kicked offline: the SDK notifies the user on the UI, and the user can choose to call the login() function of V2TIMManager to log in again.

◆ onUserSigExpired()

- (void) onUserSigExpired
optional

The ticket expires when the user is online: the user needs to generate a new userSig and call the login() function of V2TIMManager to log in again.

◆ onSelfInfoUpdated:()

- (void) onSelfInfoUpdated: (V2TIMUserFullInfo *)  Info
optional

The profile of the current user was updated.

◆ onUserStatusChanged:()

- (void) onUserStatusChanged: (NSArray< V2TIMUserStatus * > *)  userStatusList
optional

User status changed notification

Attention
You will receive this callback in the following cases:
  1. The status (including status and custom status) changed of the subscribed user.
  2. The status (including status and custom status) changed of the friends. (Need to turn on the switch on console).
  3. The custom status changed of yourself.