PICO Unreal Platform SDK
|
OnlinePicoUser Blueprint Function class. More...
#include <Pico_User.h>
Static Public Member Functions | |
static void | PicoGetLoggedInUserAndRoom (UObject *WorldContextObject, FGetLoggedInUserFriendsAndRooms InGetLoggedInuserFriendsAndRoomsCallback) |
Gets the friends of the logged-in user and the rooms the friends might be in. If a friend is not in any room, the 'room' field will be null. More... | |
static void | PicoGetNextUserAndRoomArrayPage (UObject *WorldContextObject, UPico_UserAndRoomArray *InUserAndRoomArray, FGetNextUserAndRoomArrayPage InGetNextUserAndRoomArrayPageCallback) |
Get the next page of the list of rooms where the friends of the currently logged in user are located. More... | |
static void | PicoGetUserFriends (UObject *WorldContextObject, FGetLoggedInUserFriends InGetLoggedInUserFriendsDelegate) |
Gets the friend list of the current user. Friends who don't use this app won't appear in this list. More... | |
static void | PicoGetNextUserPage (UObject *WorldContextObject, UPico_UserArray *InUserArray, FGetNextUserPage InGetNextUserPageDelegate) |
Gets the next page of a user list. More... | |
static bool | GetLoginUser (UObject *WorldContextObject, FGetLoginUser InGetLoginUserDelegate) |
Gets the information about the current logged-in user. More... | |
static bool | GetPicoUserInfo (UObject *WorldContextObject, const FString &UserId, FGetUserInfo InGetUserInfoDelegate) |
Gets user information by user ID. More... | |
static bool | GetAuthorizePermissions (UObject *WorldContextObject, FGetPermissionResult OnGetPermissionResultCallback) |
Gets the authorized permissions. More... | |
static bool | RequestUserPermissions (UObject *WorldContextObject, TArray< FString > Permissions, FGetPermissionResult OnGetPermissionResultCallback) |
Requests user permissions. The user will received a pop-up notification window. More... | |
static bool | LaunchFriendRequestFlow (UObject *WorldContextObject, const FString UserId, FLaunchFriendRequestResult OnLaunchFriendRequestResultCallback) |
Launches the flow to apply for friendship with someone. More... | |
static bool | GetAccessToken (UObject *WorldContextObject, FGetAccessTokenResult OnGetAccessTokenResultCallback) |
Gets current login user's AccessToken. The system caches the access token upon the first request, allowing subsequent requests to use the cached token information stored locally. More... | |
static bool | GetRelations (UObject *WorldContextObject, TArray< FString > UserIDs, FGetUserRelationResult OnGetUserRelationResultCallback) |
Gets the relationship between a specified user and other user(s). More... | |
static bool | EntitlementCheck (UObject *WorldContextObject, bool bKillApp, FEntitlementCheckResult OnEntitlementCheckResultCallback) |
Gets whether the player has entitlement to use the app in the current state. More... | |
static bool | GetIDToken (UObject *WorldContextObject, FGetIDToken OnGetIDTokenResultCallback) |
Gets the ID token of the current user. ID token is for OIDC login. China's issuer url is https://platform-cn.picovr.com. The global issuer url is https://platform-us.picovr.com. You can use GetSystemInfo to get the device system's region and choose the right OIDC provider. More... | |
static bool | GetOrgScopedID (UObject *WorldContextObject, const FString &UserId, FGetOrgScopedID OnGetOrgScopedIDCallback) |
Gets a user's organization ID. In an organization's apps, each user is assigned a unique organization ID, which remains the same for the same user across different apps within the organization. More... | |
OnlinePicoUser Blueprint Function class.
|
static |
Gets whether the player has entitlement to use the app in the current state.
WorldContextObject | Used to get the information about the current world. |
bKillApp | Whether to kill the app in the system when the player does not have the entitlement. If the value is true, you will not get the callback result because the app is killed. |
OnEntitlementCheckResultCallback | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage, UPico_EntitlementCheckResult *, EntitlementCheck). |
true
: Send request successful false
: Send request failure
|
static |
Gets current login user's AccessToken. The system caches the access token upon the first request, allowing subsequent requests to use the cached token information stored locally.
WorldContextObject | Used to get the information about the current world. |
OnGetAccessTokenResultCallback | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, const FString&, AccessToken). |
true
: Send request successful false
: Send request failure
|
static |
Gets the authorized permissions.
WorldContextObject | Used to get the information about the current world. |
OnGetPermissionResultCallback | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_PermissionResult *, PermissionResult). |
true
: Send request successful false
: Send request failure
|
static |
Gets the ID token of the current user. ID token is for OIDC login. China's issuer url is https://platform-cn.picovr.com. The global issuer url is https://platform-us.picovr.com. You can use GetSystemInfo
to get the device system's region and choose the right OIDC provider.
OnGetIDTokenResultCallback | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, const FString&, IDToken). |
true
: Send request success false
: Send request failure
|
static |
Gets the information about the current logged-in user.
WorldContextObject | Used to get the information about the current world. |
InGetLoginUserDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_User *, User). |
true
: Send request successful false
: Send request failure
|
static |
Gets a user's organization ID. In an organization's apps, each user is assigned a unique organization ID, which remains the same for the same user across different apps within the organization.
UserId | The Open ID for a user. |
OnGetOrgScopedIDCallback | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_OrgScopedID *, OrgScopedID). |
true
: Send request success false
: Send request failure
|
static |
Gets user information by user ID.
WorldContextObject | Used to get the information about the current world. |
UserId | The ID of the user. |
InGetUserInfoDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_User *, User). |
true
: Send request successful false
: Send request failure
|
static |
Gets the relationship between a specified user and other user(s).
WorldContextObject | Used to get the information about the current world. |
UserIDs | The list of user IDs. The request queries the current logged-in user's relationship with these users. A single request can pass no more than 20 user IDs. |
OnGetUserRelationResultCallback | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_UserRelationResult *, UserRelationResult). |
true
: Send request successful false
: Send request failure
|
static |
Launches the flow to apply for friendship with someone.
WorldContextObject | Used to get the information about the current world. |
UserId | The ID of the user that the friend request is sent to. |
OnLaunchFriendRequestResultCallback | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, bool, bDidCancel, bool, bDidSendRequest). |
true
: Send request successful false
: Send request failure
|
static |
Gets the friends of the logged-in user and the rooms the friends might be in. If a friend is not in any room, the 'room' field will be null.
WorldContextObject | Used to get the information about the current world. |
InGetLoggedInuserFriendsAndRoomsCallback | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_UserAndRoomArray *, UserAndRoomArray). |
true
: Send request successful false
: Send request failure
|
static |
Get the next page of the list of rooms where the friends of the currently logged in user are located.
WorldContextObject | Used to get the information about the current world. |
InUserAndRoomArray | The current object of user and room array. |
InGetNextUserAndRoomArrayPageCallback | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_UserAndRoomArray *, UserAndRoomArray). |
true
: Send request successful false
: Send request failure
|
static |
Gets the next page of a user list.
WorldContextObject | Used to get the information about the current world. |
InUserArray | The current object of user array. |
InGetNextUserPageDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_UserArray *, UserArray). |
true
: Send request successful false
: Send request failure
|
static |
Gets the friend list of the current user. Friends who don't use this app won't appear in this list.
WorldContextObject | Used to get the information about the current world. |
InGetLoggedInUserFriendsDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_UserArray *, UserArray). |
true
: Send request successful false
: Send request failure
|
static |
Requests user permissions. The user will received a pop-up notification window.
WorldContextObject | Used to get the information about the current world. |
Permissions | Will be executed when the request has been completed. Delegate will contain the requested object class.
|
OnGetPermissionResultCallback | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_PermissionResult *, PermissionResult). |
true
: Send request successful false
: Send request failure