IOnlineSession::SendSessionInviteToFriend

Sends an invitation to play in the player's current session

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

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

Include

#include "Interfaces/OnlineSessionInterface.h"

Syntax

bool SendSessionInviteToFriend
(
    int32 LocalUserNum,
    FName SessionName,
    const FUniqueNetId & Friend
)

Remarks

Sends an invitation to play in the player's current session

Returns

true if successful, false otherwise

Parameters

Parameter

Description

LocalUserNum

the user that is sending the invite

SessionName

session to invite them to

Friend

the player to send the invite to

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