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

Public Member Functions

String getGroupID ()
 
int getType ()
 
V2TIMGroupMemberInfo getOpMember ()
 
List< V2TIMGroupMemberInfogetMemberList ()
 
List< V2TIMGroupChangeInfogetGroupChangeInfoList ()
 
List< V2TIMGroupMemberChangeInfogetMemberChangeInfoList ()
 
int getMemberCount ()
 
V2TIMElem getNextElem ()
 
void appendElem (V2TIMElem v2TIMElem)
 

Static Public Attributes

static final int GROUP_TIPS_TYPE_INVALID = 0
 
static final int V2TIM_GROUP_TIPS_TYPE_JOIN = 1
 
static final int V2TIM_GROUP_TIPS_TYPE_INVITE = 2
 
static final int V2TIM_GROUP_TIPS_TYPE_QUIT = 3
 
static final int V2TIM_GROUP_TIPS_TYPE_KICKED = 4
 
static final int V2TIM_GROUP_TIPS_TYPE_SET_ADMIN = 5
 
static final int V2TIM_GROUP_TIPS_TYPE_CANCEL_ADMIN = 6
 
static final int V2TIM_GROUP_TIPS_TYPE_GROUP_INFO_CHANGE = 7
 
static final int V2TIM_GROUP_TIPS_TYPE_MEMBER_INFO_CHANGE = 8
 

Member Function Documentation

◆ getGroupID()

String getGroupID ( )
inline

Get the group ID

Returns
Group ID

◆ getType()

int getType ( )
inline

Get the group event notification type

Returns
Group event notification type

◆ getOpMember()

V2TIMGroupMemberInfo getOpMember ( )
inline

Get the operator

Returns
Operator

◆ getMemberList()

List<V2TIMGroupMemberInfo> getMemberList ( )
inline

Get the list of users to be operated on

Returns
List of users to be operated on

◆ getGroupChangeInfoList()

List<V2TIMGroupChangeInfo> getGroupChangeInfoList ( )
inline

Get the group profile change information list. This is valid only when the value of tipsType is V2TIMGroupTipsElem#V2TIM_GROUP_TIPS_TYPE_GROUP_INFO_CHANGE.

Returns
Group profile change information list

◆ getMemberChangeInfoList()

List<V2TIMGroupMemberChangeInfo> getMemberChangeInfoList ( )
inline

Get the group member change information list. This is valid only when the value of tipsType is V2TIMGroupTipsElem#V2TIM_GROUP_TIPS_TYPE_MEMBER_INFO_CHANGE.

Returns
Group member change information list

◆ getMemberCount()

int getMemberCount ( )
inline

Get the number of current group members. This is valid only when the value of tipsType is V2TIMGroupTipsElem#V2TIM_GROUP_TIPS_TYPE_JOIN. Valid when: V2TIMGroupTipsElem#V2TIM_GROUP_TIPS_TYPE_QUIT, V2TIMGroupTipsElem#V2TIM_GROUP_TIPS_TYPE_KICKED

Returns
Number of current group members

◆ getNextElem()

V2TIMElem getNextElem ( )
inlineinherited

◆ appendElem()

void appendElem ( V2TIMElem  v2TIMElem)
inlineinherited

Add the next element

To configure multiple elements, you can add the next element via the element of a Message object after creating the Message object.

The following is the sample code for creating V2TIMTextElem and V2TIMCustomElem elements:

V2TIMMessage message = V2TIMManager.getMessageManager().createTextMessage("test");

V2TIMCustomElem customElem = new V2TIMCustomElem();

customElem.setData("Custom message".getBytes());

message.getTextElem().appendElem(customElem);

Attention
  • This API can be called only by elements of a Message object created via createMessage.
  • This API can be used to add elements only of the V2TIMTextElem, V2TIMCustomElem, V2TIMFaceElem, and V2TIMLocationElem types.

Field Documentation

◆ GROUP_TIPS_TYPE_INVALID

final int GROUP_TIPS_TYPE_INVALID = 0
static

Invalid

◆ V2TIM_GROUP_TIPS_TYPE_JOIN

final int V2TIM_GROUP_TIPS_TYPE_JOIN = 1
static

Proactively join a group (memberList joins a group; valid only for non-Work groups)

◆ V2TIM_GROUP_TIPS_TYPE_INVITE

final int V2TIM_GROUP_TIPS_TYPE_INVITE = 2
static

Be invited to a group (opMember invites memberList to join a group; valid only for Work groups)

◆ V2TIM_GROUP_TIPS_TYPE_QUIT

final int V2TIM_GROUP_TIPS_TYPE_QUIT = 3
static

Quit a group

◆ V2TIM_GROUP_TIPS_TYPE_KICKED

final int V2TIM_GROUP_TIPS_TYPE_KICKED = 4
static

Be kicked out of a group (opMember kicks memberList out of the group)

◆ V2TIM_GROUP_TIPS_TYPE_SET_ADMIN

final int V2TIM_GROUP_TIPS_TYPE_SET_ADMIN = 5
static

Set an admin (opMember sets memberList as an admin)

◆ V2TIM_GROUP_TIPS_TYPE_CANCEL_ADMIN

final int V2TIM_GROUP_TIPS_TYPE_CANCEL_ADMIN = 6
static

Cancel an admin (opMember cancels memberList as an admin)

◆ V2TIM_GROUP_TIPS_TYPE_GROUP_INFO_CHANGE

final int V2TIM_GROUP_TIPS_TYPE_GROUP_INFO_CHANGE = 7
static

Group profile change (opMember modifies group information´╝ÜgroupName & introduction & notification & faceUrl & owner & custom)

◆ V2TIM_GROUP_TIPS_TYPE_MEMBER_INFO_CHANGE

final int V2TIM_GROUP_TIPS_TYPE_MEMBER_INFO_CHANGE = 8
static

Group member profile change (opMember modifies group member information´╝ÜmuteTime)