IOnlineMessage::SendMessage

Send a message from the currently logged in user to a list of recipients

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineMessageInterface.h

Include

#include "Interfaces/OnlineMessageInterface.h"

Syntax

bool SendMessage
(
    int32 LocalUserNum,
    const TArray< FUniqueNetIdRef > & RecipientIds,
    const FString & MessageType,
    const FOnlineMessagePayload & Payload
)

Remarks

Send a message from the currently logged in user to a list of recipients

Returns

true if request was started

Parameters

Parameter

Description

LocalUserNum

the controller number of the associated user that made the request

RecipientIds

unique ids of users to send this message to

MessageType

string representing the type of message

Payload

the body/content of the message

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss