Skip to main content

createFaceMessageWithIndex

Description

info

Create a face/emoji message.

Note

Custom emojis, animations, etc. If all platforms synchronize the same set of emojis, you can use the index parameter. If platforms do not synchronize emojis, you can use the data parameter, in which case it is recommended to set index to -1.

Function Prototype


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

Input Parameters

Parameter NameParameter TypeRequiredDescription
indexNSIntegerYesIndex
dataStrNSStringYesContent

Return Result

NameTypeDescription
messageOIMMessageInfoSuccess return

Code Example


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