ASpectatorBeaconClient::RequestReservation

Sends a request to the remote host to allow the specified members to reserve space in the host's session.

Windows
MacOS
Linux

References

Module

OnlineSubsystemUtils

Header

/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/SpectatorBeaconClient.h

Include

#include "SpectatorBeaconClient.h"

Source

/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Private/SpectatorBeaconClient.cpp

Syntax

virtual bool RequestReservation
(
    const FOnlineSessionSearchResult & DesiredHost,
    const FUniqueNetIdRepl & RequestingSpectator,
    const FPlayerReservation & Reservation
)

Remarks

Sends a request to the remote host to allow the specified members to reserve space in the host's session. Note this request is async.

Returns

true if the request able to be sent, false if it failed to send

Parameters

Parameter

Description

DesiredHost

a search result describing the server that the connection will be made to

RequestingSpectator

the spectator that will be joining

Reservation

the reservation for the spectator who wants to reserve space

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