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

Public Member Functions

int getType ()
 
String getValue ()
 
boolean getBoolValue ()
 
String getKey ()
 

Static Public Attributes

static final int V2TIM_GROUP_INFO_INVALID = 0
 
static final int V2TIM_GROUP_INFO_CHANGE_TYPE_NAME = 1
 
static final int V2TIM_GROUP_INFO_CHANGE_TYPE_INTRODUCTION = 2
 
static final int V2TIM_GROUP_INFO_CHANGE_TYPE_NOTIFICATION = 3
 
static final int V2TIM_GROUP_INFO_CHANGE_TYPE_FACE_URL = 4
 
static final int V2TIM_GROUP_INFO_CHANGE_TYPE_OWNER = 5
 
static final int V2TIM_GROUP_INFO_CHANGE_TYPE_CUSTOM = 6
 
static final int V2TIM_GROUP_INFO_CHANGE_TYPE_SHUT_UP_ALL = 8
 

Member Function Documentation

◆ getType()

int getType ( )
inline

Get the group profile change message type

Returns
Group profile change message type

◆ getValue()

String getValue ( )
inline

value has different meanings depending on the change type. For example, when type is V2TIMGroupChangeInfo.V2TIM_GROUP_INFO_CHANGE_TYPE_NAME, value indicates the new group name.

Returns
Message content

◆ getBoolValue()

boolean getBoolValue ( )
inline

value has different meanings depending on the change type. It is valid only when type is V2TIM_GROUP_INFO_CHANGE_TYPE_SHUT_UP_ALL.

Returns

◆ getKey()

String getKey ( )
inline

Value of key of the custom field modified (valid only when type is V2TIMGroupChangeInfo.V2TIM_GROUP_INFO_CHANGE_TYPE_CUSTOM) For historical reasons, if only the custom group field is modified, the current message will not be saved to the roaming server or database.

Returns
Value of key of the custom field

Field Documentation

◆ V2TIM_GROUP_INFO_INVALID

final int V2TIM_GROUP_INFO_INVALID = 0
static

Invalid value

◆ V2TIM_GROUP_INFO_CHANGE_TYPE_NAME

final int V2TIM_GROUP_INFO_CHANGE_TYPE_NAME = 1
static

Change the group name

◆ V2TIM_GROUP_INFO_CHANGE_TYPE_INTRODUCTION

final int V2TIM_GROUP_INFO_CHANGE_TYPE_INTRODUCTION = 2
static

Modify the group introduction

◆ V2TIM_GROUP_INFO_CHANGE_TYPE_NOTIFICATION

final int V2TIM_GROUP_INFO_CHANGE_TYPE_NOTIFICATION = 3
static

Modify the group notice

◆ V2TIM_GROUP_INFO_CHANGE_TYPE_FACE_URL

final int V2TIM_GROUP_INFO_CHANGE_TYPE_FACE_URL = 4
static

Modify the group profile photo

◆ V2TIM_GROUP_INFO_CHANGE_TYPE_OWNER

final int V2TIM_GROUP_INFO_CHANGE_TYPE_OWNER = 5
static

Change the group owner

◆ V2TIM_GROUP_INFO_CHANGE_TYPE_CUSTOM

final int V2TIM_GROUP_INFO_CHANGE_TYPE_CUSTOM = 6
static

Change the custom group field

◆ V2TIM_GROUP_INFO_CHANGE_TYPE_SHUT_UP_ALL

final int V2TIM_GROUP_INFO_CHANGE_TYPE_SHUT_UP_ALL = 8
static

Change the group muting field

Attention
  • Supported in versions later than 5.6.1200
  • Backend configuration required
  • The new value can be obtained via the getBoolValue API