Skip to main content

createCustomMessage

Feature Introduction

Note

Create a custom message, where the fields are all defined by the developer. The SDK is only responsible for transparent transmission.

Function Prototype


+ (OIMMessageInfo *)createCustomMessage:(NSString *)data
extension:(NSString * _Nullable)extension
description:(NSString * _Nullable)description;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
dataNSStringYesText content
extensionNSStringNoExtension content
descriptionNSStringNoDescription

Return Result

NameTypeDescription
messageOIMMessageInfoSuccess

Code Example


OIMMessageInfo *message = [OIMMessageInfo createCustomMessage:@""
extension:@""
description:@""];