Skip to main content

createFaceMessageWithIndex

Feature Introduction

Description

Create emoji messages.

Note

For custom emojis, GIFs, etc. If all platforms synchronize a set of emoji packs, you can use the index parameter. If the emoji packs are not synchronized across platforms, you can use the data parameter. In this case, it is recommended to set the index to -1.

Function Prototype


+ (OIMMessageInfo *)createFaceMessageWithIndex:(NSInteger)index
data:(NSString *)dataStr;

Input Parameters

Parameter NameTypeMandatoryDescription
indexNSIntegerYesIndex
dataStrNSStringYesContent

Return Result

NameTypeDescription
messageOIMMessageInfoSuccessful return

Code Example


OIMMessageInfo *message = [OIMMessageInfo createFaceMessageWithIndex:0 data:@""];