Skip to main content

SendDataMessage

SendDataMessage(buffer, recipients, deliveryOption);

Sends a data message to the specified players. This is a more advanced overload for sending data messages, allowing the developer more control over how the message is sent.

Syntax

Parameters

Parameters

buffer IntPtr A pointer to the buffer containing the data to send. recipients IEnumerable<PlayFabPlayer> The players to send the data message to. If the collection of players is empty, the data message will be broadcast to all players. deliveryOption DeliveryOption Options specifying how to deliver the message.

Return value

None.

SendDataMessage(buffer, bufferSize, recipients, deliveryOption);

Sends a data message to the specified players using the specified delivery options. The most advanced method for sending data messages, allowing the developer more control over how the message is sent.

Syntax

Parameters

buffer IntPtr A pointer to the buffer containing the data to send. bufferSize uint The size of the buffer. recipients IEnumerable<PlayFabPlayer> The players to send the data message to. If the collection of players is empty, the data message will be broadcast to all players. deliveryOption DeliveryOption Options specifying how to deliver the message.

Sample

Return value

None.
Last modified on August 10, 2026