USocialToolkit::QueueUserDependentAction

Queues an action to be executed when a [USocialUser](API\Plugins\Party\User\USocialUser) corresponding to the given UniqueId has been established.

Choose your operating system:

Windows

macOS

Linux

References

Module

Party

Header

/Engine/Plugins/Online/OnlineFramework/Source/Party/Public/SocialToolkit.h

Include

#include "SocialToolkit.h"

Source

/Engine/Plugins/Online/OnlineFramework/Source/Party/Private/SocialToolkit.cpp

Syntax

void QueueUserDependentAction
(
    const FUniqueNetIdRepl & UserId,
    TFunction< void &)> && UserActionFunc,
    bool bExecutePostInit
)

Remarks

Queues an action to be executed when a USocialUser corresponding to the given UniqueId has been established. The process of creating and initializing a user varies in complexity depending on the local user's platform and the OSS the given Id corresponds to.

Up to the caller whether they want the action executed immediately upon creation of the USocialUser instance, or after the instance is fully initialized (i.e. has finished discovering all available backend information) Default is to execute after initialization and is generally more appropriate.