SDKsAndroid
Create an emoji message
Use createFaceMessage to create a custom emoji message.
index is the application-defined emoji identifier. data stores an emoji URL, resource version, or other custom information. Sending and receiving clients must interpret both values with the same protocol.
Message message = OpenIMClient.getInstance().messageManager.createFaceMessage(index, dataJson);The returned Message is only a local pending object. Validate its JSON and resource URLs before sending, and do not place sensitive data in data. Continue with Send a message.
Was this page helpful?