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 ()
 
String toString ()
 
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
 
static final int V2TIM_GROUP_TIPS_TYPE_TOPIC_INFO_CHANGE = 9
 
static final int V2TIM_GROUP_TIPS_TYPE_PINNED_MESSAGE_ADDED = 10
 
static final int V2TIM_GROUP_TIPS_TYPE_PINNED_MESSAGE_DELETED = 11
 

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

◆ toString()

String toString ( )
inline

Operator platform information Value: iOS Android Windows Mac Simulator Other

Returns
Operator platform information

◆ getNextElem()

V2TIMElem getNextElem ( )
inlineinherited

◆ appendElem()

void appendElem ( V2TIMElem  v2TIMElem)
inlineinherited

Add the next element

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

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

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 V2TIMTextElem, V2TIMCustomElem, V2TIMFaceElem, or V2TIMLocationElem.

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; supports all group types except AVChatRoom from version 8.0)

◆ 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 & allMute & 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)

◆ V2TIM_GROUP_TIPS_TYPE_TOPIC_INFO_CHANGE

final int V2TIM_GROUP_TIPS_TYPE_TOPIC_INFO_CHANGE = 9
static

Topic profile change(opMember modifies topic information:topicName & introduction & notification & faceUrl & allMute & topicCustomData)

◆ V2TIM_GROUP_TIPS_TYPE_PINNED_MESSAGE_ADDED

final int V2TIM_GROUP_TIPS_TYPE_PINNED_MESSAGE_ADDED = 10
static

Pinned group messages

◆ V2TIM_GROUP_TIPS_TYPE_PINNED_MESSAGE_DELETED

final int V2TIM_GROUP_TIPS_TYPE_PINNED_MESSAGE_DELETED = 11
static

Cancel pinned group messages