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.
V2TIMValueCallback< T >abstract

Public Member Functions

 ~V2TIMValueCallback () override
 
virtual void OnSuccess (const T &value)=0
 
virtual void OnError (int error_code, const V2TIMString &error_message)=0
 

Constructor & Destructor Documentation

◆ ~V2TIMValueCallback()

~V2TIMValueCallback ( )
inlineoverride

Member Function Documentation

◆ OnSuccess()

virtual void OnSuccess ( const T &  value)
pure virtual

Callback on success,with parameter of type T

◆ OnError()

virtual void OnError ( int  error_code,
const V2TIMString error_message 
)
pure virtual

Callback on failure

Parameters
error_codeError code (see the error code table for details)
error_messageError description