Omni One Unreal SDK 1.1.0
The Omni One Unreal SDK allows for games to interface with the Omni platform service.
|
Service that accesses information about users and their relations.
The User Service is able to access user profile data for the logged-in user, their friends and other users. Also allows the logged in user to initiate a friend request.
#include <OmniUserService.h>
Inherits FOmniPlatformServiceBase.
Public Member Functions | |
bool | GetLoginUser (const FGetOmniUserDelegate &InGetUserInfoCallback) const |
Retrieves information about the logged in user. | |
bool | GetUserInfo (const FString &UserId, const FGetOmniUserDelegate &InGetUserInfoCallback) const |
Retrieves information about the user with the provided user ID. | |
bool | GetAccessToken (const FGetAccessTokenDelegate &InGetAccessTokenCallback) const |
Retrieves the game-scoped access token of the logged in user. | |
bool | GetUserFriends (const FGetOmniUserFriendsDelegate &InGetUserFriendsCallback) |
Retrieves information about the logged in user's friends, up to 100 entries. | |
bool | GetNextUserPage (UOmniUserArray *CurrentArray, const FGetOmniUserFriendsDelegate &InGetUserFriendsCallback) |
Retrieves a subsequent page of user information for the logged in users friends, up to 100 entries. | |
bool | GetUserRelations (TArray< FString > UserIds, const FGetUserRelationDelegate &InGetUserRelationsCallback) const |
Retrieves user relation data for the logged in user and the array of user Ids provided. | |
bool | LaunchFriendRequestFlow (const FString &UserId, const FLaunchFriendRequestDelegate &OnLaunchFriendRequestResultCallback) const |
Launch a dialog to allow the user to send a friend request. | |
void | EntitlementCheck (const FIsEntitledDelegate &InEntitlementCheckCallback, const FString &EntitlementKey) |
Performs an entitlement check. | |
void FOmniUserService::EntitlementCheck | ( | const FIsEntitledDelegate & | InEntitlementCheckCallback, |
const FString & | EntitlementKey | ||
) |
Performs an entitlement check.
InEntitlementCheckCallback | A callback that will be executed when the service has retrieved the information. bool bIsEntitled is the parameter. |
EntitlementKey | Entitlement key. |
bool FOmniUserService::GetAccessToken | ( | const FGetAccessTokenDelegate & | InGetAccessTokenCallback | ) | const |
Retrieves the game-scoped access token of the logged in user.
InGetAccessTokenCallback | A callback that will be executed when the service has retrieved the information. bool bIsError , const FString& ErrorMessage , FString AccessToken are parameters. |
bool FOmniUserService::GetLoginUser | ( | const FGetOmniUserDelegate & | InGetUserInfoCallback | ) | const |
Retrieves information about the logged in user.
InGetUserInfoCallback | A callback that will be executed when the service has retrieved the information. bool bIsError , const FString& ErrorMessage , UOmniUser* (null in error cases) are parameters. |
bool FOmniUserService::GetNextUserPage | ( | UOmniUserArray * | CurrentArray, |
const FGetOmniUserFriendsDelegate & | InGetUserFriendsCallback | ||
) |
Retrieves a subsequent page of user information for the logged in users friends, up to 100 entries.
Currently returns empty list if no more friends.
CurrentArray | The array for which to retrieve the next page of information. |
InGetUserFriendsCallback | A callback that will be executed when the service has retrieved the information. bool bIsError , const FString& ErrorMessage , UOmniUserArray* (null in error cases) are parameters. |
bool FOmniUserService::GetUserFriends | ( | const FGetOmniUserFriendsDelegate & | InGetUserFriendsCallback | ) |
Retrieves information about the logged in user's friends, up to 100 entries.
Call GetNextUserPage()
to retrieve subsequent pages.
InGetUserFriendsCallback | A callback that will be executed when the service has retrieved the information. bool bIsError , const FString& ErrorMessage , UOmniUserArray* (null in error cases) are parameters. |
bool FOmniUserService::GetUserInfo | ( | const FString & | UserId, |
const FGetOmniUserDelegate & | InGetUserInfoCallback | ||
) | const |
Retrieves information about the user with the provided user ID.
UserId | The ID of the user to retrieve information about. |
InGetUserInfoCallback | A callback that will be executed when the service has retrieved the information. bool bIsError , const FString& ErrorMessage , UOmniUser* (null in error cases) are parameters. |
bool FOmniUserService::GetUserRelations | ( | TArray< FString > | UserIds, |
const FGetUserRelationDelegate & | InGetUserRelationsCallback | ||
) | const |
Retrieves user relation data for the logged in user and the array of user Ids provided.
UserIds | The user IDs for each user to gather relation information about. |
InGetUserRelationsCallback | A callback that will be executed when the service has retrieved the information. bool bIsError , const FString& ErrorMessage , UUserRelationResult* (null in error cases) are parameters. |
bool FOmniUserService::LaunchFriendRequestFlow | ( | const FString & | UserId, |
const FLaunchFriendRequestDelegate & | OnLaunchFriendRequestResultCallback | ||
) | const |
Launch a dialog to allow the user to send a friend request.
UserId | The User Id for the user that the dialog will attempt to send a request to. |
OnLaunchFriendRequestResultCallback | A callback that will be executed when the service has retrieved the information. bool bIsError , const FString& ErrorMessage , bool bSent are parameters. |