sendDirectionalMediaMessage

public abstract void sendDirectionalMediaMessage(Message message, Array<String> userIds, String pushContent, String pushData, IRongCallback.ISendMediaMessageCallback callback)

Sends a targeted multimedia message.

Sends a message to specific users in a conversation; other users in the conversation will not receive the message. Before sending, construct a Message entity, where the content must be a multimedia message. For example: ImageMessage, FileMessage, or any other message that inherits from MediaMessageContent.

Starting from version 5.6.9, ultra group conversation types are supported.

Parameters

message

The message entity to be sent.

userIds

An array of targeted recipient IDs.

pushContent

When sending a remote push notification, this field will be displayed in the notification bar. If sending a custom message, this field must be filled; otherwise, the remote push notification will not be received. If sending default message types in the SDK, such as RC:TxtMsg, RC:VcMsg, RC:ImgMsg, this field is not required as it is already specified by default.

pushData

Additional information for the remote push notification. If this field is set, users can retrieve it via getPushData when receiving the remote push notification.

callback

The callback for sending the message SendMediaMessageCallback.