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

Public Member Functions

 V2TIMUserStatus ()
 
String getUserID ()
 
int getStatusType ()
 
String getCustomStatus ()
 
List< String > getOnlineDevices ()
 
void setCustomStatus (String customStatus)
 

Static Public Attributes

static final int V2TIM_USER_STATUS_UNKNOWN = 0
 
static final int V2TIM_USER_STATUS_ONLINE = 1
 
static final int V2TIM_USER_STATUS_OFFLINE = 2
 
static final int V2TIM_USER_STATUS_UNLOGINED = 3
 

Constructor & Destructor Documentation

◆ V2TIMUserStatus()

V2TIMUserStatus ( )
inline

Member Function Documentation

◆ getUserID()

String getUserID ( )
inline

Get the identifier of status changed user

◆ getStatusType()

int getStatusType ( )
inline

Get the status of user

◆ getCustomStatus()

String getCustomStatus ( )
inline

Get custom status

◆ getOnlineDevices()

List<String> getOnlineDevices ( )
inline

Get custom online devices list

◆ setCustomStatus()

void setCustomStatus ( String  customStatus)
inline

Set custom status

Parameters
customStatusThe maximum length of customStatus is 100 bytes.

Field Documentation

◆ V2TIM_USER_STATUS_UNKNOWN

final int V2TIM_USER_STATUS_UNKNOWN = 0
static

Unknown status

◆ V2TIM_USER_STATUS_ONLINE

final int V2TIM_USER_STATUS_ONLINE = 1
static

Online status

◆ V2TIM_USER_STATUS_OFFLINE

final int V2TIM_USER_STATUS_OFFLINE = 2
static

Offline status

◆ V2TIM_USER_STATUS_UNLOGINED

final int V2TIM_USER_STATUS_UNLOGINED = 3
static

Unlogined status (such as logout or registering)