PICO Unreal Platform SDK
|
PicoUserInterface class. More...
#include <Pico_User.h>
Public Member Functions | |
bool | GetLoginUser (FGetLoginUser InGetLoginUserDelegate) |
Gets the information about the current logged-in user. More... | |
bool | GetUserInfo (const FString &UserId, FGetUserInfo InGetUserInfoDelegate) |
Gets the information by user ID. More... | |
bool | GetLoggedInUserAndRoom (FGetLoggedInUserFriendsAndRooms OnGetLoggedInuserFriendsAndRoomsCallback) |
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... | |
bool | GetNextUserAndRoomArrayPage (UPico_UserAndRoomArray *InUserAndRoomArray, FGetNextUserAndRoomArrayPage OnGetNextUserAndRoomArrayPageCallback) |
Get the next page of the list of rooms where the friends of the currently logged in user are located. More... | |
bool | GetUserFriends (FGetLoggedInUserFriends OnGetLoggedInUserFriendsCallback) |
Gets the friend list of the current user. Friends who don't use this app won't appear in this list. More... | |
bool | GetNextUserPage (UPico_UserArray *InUserArray, FGetNextUserPage OnGetNextUserPageCallback) |
Gets the next page of user list. More... | |
bool | GetAuthorizePermissions (FGetPermissionResult OnGetPermissionResultCallback) |
Gets the authorized permissions. More... | |
bool | RequestUserPermissions (TArray< FString > Permissions, FGetPermissionResult OnGetPermissionResultCallback) |
Requests user permissions. The user will received a pop-up notification window. More... | |
bool | LaunchFriendRequestFlow (const FString &UserId, FLaunchFriendRequestResult OnLaunchFriendRequestResultCallback) |
Launches the flow to apply for friendship with someone. More... | |
bool | GetAccessToken (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... | |
bool | GetRelations (TArray< FString > UserIDs, FGetUserRelationResult OnGetUserRelationResultCallback) |
Gets the relationship between a specified user and other user(s). More... | |
bool | EntitlementCheck (bool bKillApp, FEntitlementCheckResult OnEntitlementCheckResultCallback) |
Gets whether the player has entitlement to use the app in the current state. More... | |
bool | GetIDToken (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... | |
bool | GetOrgScopedID (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... | |
PicoUserInterface class.
bool EntitlementCheck | ( | bool | bKillApp, |
FEntitlementCheckResult | OnEntitlementCheckResultCallback | ||
) |
Gets whether the player has entitlement to use the app in the current state.
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
bool GetAccessToken | ( | 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.
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
bool GetAuthorizePermissions | ( | FGetPermissionResult | OnGetPermissionResultCallback | ) |
Gets the authorized permissions.
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
bool GetIDToken | ( | 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.
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 bool GetLoggedInUserAndRoom | ( | FGetLoggedInUserFriendsAndRooms | OnGetLoggedInuserFriendsAndRoomsCallback | ) |
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.
OnGetLoggedInuserFriendsAndRoomsCallback | 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
bool GetLoginUser | ( | FGetLoginUser | InGetLoginUserDelegate | ) |
Gets the information about the current logged-in user.
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
bool GetNextUserAndRoomArrayPage | ( | UPico_UserAndRoomArray * | InUserAndRoomArray, |
FGetNextUserAndRoomArrayPage | OnGetNextUserAndRoomArrayPageCallback | ||
) |
Get the next page of the list of rooms where the friends of the currently logged in user are located.
InUserAndRoomArray | The current object of user and room array. |
OnGetNextUserAndRoomArrayPageCallback | 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
bool GetNextUserPage | ( | UPico_UserArray * | InUserArray, |
FGetNextUserPage | OnGetNextUserPageCallback | ||
) |
Gets the next page of user list.
InUserArray | The current object of the user array. |
OnGetNextUserPageCallback | 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
bool GetOrgScopedID | ( | 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.
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
bool GetRelations | ( | TArray< FString > | UserIDs, |
FGetUserRelationResult | OnGetUserRelationResultCallback | ||
) |
Gets the relationship between a specified user and other user(s).
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
bool GetUserFriends | ( | FGetLoggedInUserFriends | OnGetLoggedInUserFriendsCallback | ) |
Gets the friend list of the current user. Friends who don't use this app won't appear in this list.
OnGetLoggedInUserFriendsCallback | 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
bool GetUserInfo | ( | const FString & | UserId, |
FGetUserInfo | InGetUserInfoDelegate | ||
) |
Gets the information by user ID.
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
bool LaunchFriendRequestFlow | ( | const FString & | UserId, |
FLaunchFriendRequestResult | OnLaunchFriendRequestResultCallback | ||
) |
Launches the flow to apply for friendship with someone.
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
bool RequestUserPermissions | ( | TArray< FString > | Permissions, |
FGetPermissionResult | OnGetPermissionResultCallback | ||
) |
Requests user permissions. The user will received a pop-up notification window.
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