Public Member Functions | |
boolean | isLayersOverLimit () |
String | getTitle () |
List< String > | getAbstractList () |
void | downloadMergerMessage (final V2TIMValueCallback< List< V2TIMMessage >> callback) |
String | toString () |
V2TIMElem | getNextElem () |
void | appendElem (V2TIMElem v2TIMElem) |
|
inline |
When a combined message also contains combined messages, we call the situation combination nesting. The number of combination nesting levels cannot exceed 100. If the limit is exceeded, layersOverLimit will return true, title and abstractList will return an empty string, and downloadMergerMessage will return the ERR_MERGER_MSG_LAYERS_OVER_LIMIT error code. title and abstractList will return null, and downloadMergerMessage will return the ERR_MERGER_MSG_LAYERS_OVER_LIMIT error code.
|
inline |
Get the title of a combined message
|
inline |
Get the abstract list of the combined message
|
inline |
Download the list of messages combined
|
inline |
|
inlineinherited |
|
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);