IOnlineFriends::GetRecentPlayers

Copies the cached list of recent players for a given user

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

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

Include

#include "Interfaces/OnlineFriendsInterface.h"

Syntax

bool GetRecentPlayers
(
    const FUniqueNetId & UserId,
    const FString & Namespace,
    TArray< TSharedRef< FOnlineRecentPlayer > > & OutRecentPlayers
)

Remarks

Copies the cached list of recent players for a given user

Returns

true if recent players list was found for the given user

Parameters

Parameter

Description

UserId

user to retrieve recent players for

Namespace

the recent players namespace to retrieve (if empty retrieve all namespaces)

OutRecentPlayers

[out] array that receives the copied data

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