SDKsiOS
Create a text message
Create a text message with OpenIM iOS SDK.
The OIMMessageInfo message factories synchronously create objects to be sent. They do not send messages or trigger a receiving delegate.
OIMMessageInfo *message = [OIMMessageInfo createTextMessage:text];The argument is the text body. Apply your application's whitespace, length, and content rules before calling the factory. After creation, pass the object to Send a message.
Was this page helpful?