IOnlineGroups::GetCachedUserMembership

Get cached user membership information (if it exists).

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

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

Include

#include "Interfaces/OnlineGroupsInterface.h"

Syntax

TSharedPtr< const IUserMembership > GetCachedUserMembership
(
    const FUniqueNetId & ContextUserId,
    const FUniqueNetId & UserId
)

Remarks

Get cached user membership information (if it exists). This retrieves which groups they are members of. If UserId is the ID of the context user, then this list will include groups to which the user has been invited (use JoinGroup to accept, LeaveGroup to decline) or groups they have petitioned but haven't received a response for yet.

Parameters

Parameter

Description

ContextUserId

The ID of the user whose credentials are being used to make this call

UserId

The ID of the user to query.

OnCompleted

This callback is invoked after contacting the server. It is guaranteed to occur (regardless of success/fail) and will not be called before this function returns.

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