Instance Methods | |
(void) | - downloadMergerMessage:fail: |
(V2TIMElem *) | - nextElem |
(void) | - appendElem: |
Properties | |
BOOL | layersOverLimit |
NSString * | title |
NSArray< NSString * > * | abstractList |
- (void) downloadMergerMessage: | (V2TIMMessageListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
Download the list of messages combined.
- (V2TIMElem *) nextElem |
Get the next Elem. If your message has multiple Elems, you can get the next Elem object from the current Elem. If the return value is nil, it means the Elem acquisition is over. For detailed usage, please refer to the document Message sending and receiving
- (void) appendElem: | (V2TIMElem *) | elem |
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 *msg = [[V2TIMManager sharedInstance] createTextMessage:"text"]; V2TIMCustomElem *customElem = [[V2TIMCustomElem alloc] init]; customElem.data = ["自定义消息" dataUsingEncoding:NSUTF8StringEncoding]; [msg.textElem appendElem:customElem];
|
readnonatomicassign |
If a combined message also contains combined messages, we call it nesting. There cannot be more than 100 nesting levels. If the limit is exceeded, layersOverLimit will return true, title and abstractList will return an empty string, and downloadMergerMessage will return the error code ERR_MERGER_MSG_LAYERS_OVER_LIMIT.
|
readnonatomicstrong |
Title of a combined message.
|
readnonatomicstrong |
Abstract list of a combined message.