Omni One Unreal SDK 1.1.0
The Omni One Unreal SDK allows for games to interface with the Omni platform service.
Loading...
Searching...
No Matches
UOmniUserServiceFunctions

Description

Function library that allows access to the Omni User Service via Blueprint.

#include <OmniUserService.h>

Inherits UBlueprintFunctionLibrary.

Methods

static void OmniGetLoginUser (UObject *WorldContext, FGetLoginOmniUserDelegate InGetUserInfoCallback)
 Retrieves information about the logged in user.
 
static void OmniGetUserInfo (UObject *WorldContext, const FString &UserId, FGetOmniUserInfoDelegate InGetUserInfoCallback)
 Retrieves information about the user with the provided user ID.
 
static void OmniAccessToken (UObject *WorldContext, FGetAccessTokenDynamicDelegate InGetAccessTokenCallback)
 Retrieves the game-scoped access token of the logged in user.
 
static void OmniGetUserFriends (UObject *WorldContext, FGetOmniUserFriendsInfoDelegate InGetUserFriendsCallback)
 Retrieves the first page of user information for the logged in users friends, up to 100 entries.
 
static void OmniGetNextUserPage (UObject *WorldContext, UOmniUserArray *CurrentArray, FGetOmniUserFriendsInfoDelegate InGetUserFriendsCallback)
 Retrieves a subsequent page of user information for the logged in user's friends, up to 100 entries per page.
 
static void OmniGetUserRelations (UObject *WorldContext, TArray< FString > UserIds, FGetUserRelationDynamicDelegate InGetUserRelationsCallback)
 Retrieves user relation data for the logged in user and the array of user Ids provided.
 
static void OmniLaunchFriendRequestFlow (UObject *WorldContext, const FString &UserId, FLaunchFriendRequestInfoDelegate OnLaunchFriendRequestResultCallback)
 
static void OmniEntitlementCheck (UObject *WorldContext, FIsEntitledDynamicDelegate OnEntitlementCheckResultCallback, const FString &EntitlementKey)
 Perform an entitlement check.
 

Methods

◆ OmniAccessToken()

static void UOmniUserServiceFunctions::OmniAccessToken ( UObject *  WorldContext,
FGetAccessTokenDynamicDelegate  InGetAccessTokenCallback 
)
static

Retrieves the game-scoped access token of the logged in user.

Parameters
WorldContextReference to the world context.
InGetAccessTokenCallbackA callback that will be executed when the service has retrieved the information. bool bIsError, const FString& ErrorMessage, FString AccessToken are parameters.

◆ OmniEntitlementCheck()

static void UOmniUserServiceFunctions::OmniEntitlementCheck ( UObject *  WorldContext,
FIsEntitledDynamicDelegate  OnEntitlementCheckResultCallback,
const FString &  EntitlementKey 
)
static

Perform an entitlement check.

Parameters
WorldContextReference to the world context.
OnEntitlementCheckResultCallbackA callback that will be executed when the service has retrieved the information. bool bIsEntitled, is the parameter.
EntitlementKeyEntitlement key.

◆ OmniGetLoginUser()

static void UOmniUserServiceFunctions::OmniGetLoginUser ( UObject *  WorldContext,
FGetLoginOmniUserDelegate  InGetUserInfoCallback 
)
static

Retrieves information about the logged in user.

Parameters
WorldContextReference to the world context.
InGetUserInfoCallbackA callback that will be executed when the service has retrieved the information. bool bIsError, const FString& ErrorMessage, UOmniUser* (null in error cases) are parameters.

◆ OmniGetNextUserPage()

static void UOmniUserServiceFunctions::OmniGetNextUserPage ( UObject *  WorldContext,
UOmniUserArray CurrentArray,
FGetOmniUserFriendsInfoDelegate  InGetUserFriendsCallback 
)
static

Retrieves a subsequent page of user information for the logged in user's friends, up to 100 entries per page.

Currently returns empty list if no more friends.

Parameters
WorldContextReference to the world context.
CurrentArrayThe array for which to retrieve the next page of information.
InGetUserFriendsCallbackA callback that will be executed when the service has retrieved the information. bool bIsError, const FString& ErrorMessage, UOmniUserArray* (null in error cases) are parameters.

◆ OmniGetUserFriends()

static void UOmniUserServiceFunctions::OmniGetUserFriends ( UObject *  WorldContext,
FGetOmniUserFriendsInfoDelegate  InGetUserFriendsCallback 
)
static

Retrieves the first page of user information for the logged in users friends, up to 100 entries.

Parameters
WorldContextReference to the world context.
InGetUserFriendsCallbackA callback that will be executed when the service has retrieved the information. bool bIsError, const FString& ErrorMessage, UOmniUserArray* (null in error cases) are parameters.

◆ OmniGetUserInfo()

static void UOmniUserServiceFunctions::OmniGetUserInfo ( UObject *  WorldContext,
const FString &  UserId,
FGetOmniUserInfoDelegate  InGetUserInfoCallback 
)
static

Retrieves information about the user with the provided user ID.

Parameters
WorldContextReference to the world context.
UserIdThe ID of the user to retrieve information about.
InGetUserInfoCallbackA callback that will be executed when the service has retrieved the information. bool bIsError, const FString& ErrorMessage, UOmniUser* (null in error cases) are parameters.

◆ OmniGetUserRelations()

static void UOmniUserServiceFunctions::OmniGetUserRelations ( UObject *  WorldContext,
TArray< FString >  UserIds,
FGetUserRelationDynamicDelegate  InGetUserRelationsCallback 
)
static

Retrieves user relation data for the logged in user and the array of user Ids provided.

Parameters
WorldContextReference to the world context.
UserIdsThe user IDs for each user to gather relation information about.
InGetUserRelationsCallbackA callback that will be executed when the service has retrieved the information. bool bIsError, const FString& ErrorMessage, UUserRelationResult* (null in error cases) are parameters.

◆ OmniLaunchFriendRequestFlow()

static void UOmniUserServiceFunctions::OmniLaunchFriendRequestFlow ( UObject *  WorldContext,
const FString &  UserId,
FLaunchFriendRequestInfoDelegate  OnLaunchFriendRequestResultCallback 
)
static
  • Launch a dialog to allow the user to send a friend request.
    Parameters
    WorldContextReference to the world context.
    UserIdThe User Id for the user that the dialog will attempt to send a request to.
    OnLaunchFriendRequestResultCallbackA callback that will be executed when the service has retrieved the information. bool bIsError, const FString& ErrorMessage, bool bSent are parameters.