Skip to main content

createMergeMessage

Feature Introduction

Description

Create a merge message by combining multiple messages into one. The parameters include a title, summary, and multiple messages.

Note

It is recommended to keep the total number of merged messages within 100.

Function Prototype


+ (OIMMessageInfo *)createMergeMessage:(NSArray <OIMMessageInfo *> *)messages
title:(NSString *)title
summaryList:(NSArray <NSString *> *)summarys;

Input Parameters

Parameter NameParameter TypeRequiredDescription
messagesNSArray < OIMMessageInfo * >YesMessage list
titleNSStringYesTitle
summarysNSArray <NSString *>YesMessage summary list

Return Result

NameTypeDescription
messageOIMMessageInfoSuccessful return

Code Example


OIMMessageInfo *message = [OIMMessageInfo createMergeMessage:@[]
title:@""
summaryList:@[]];