sendDirectionalMediaMessage

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

Sends a targeted multimedia message.

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

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

Since

5.2.4

Parameters

message

The message entity to be sent.

userIds

An array of target 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 does not need to be filled as it is already specified by default.

pushData

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

callback

The callback for sending the message .