Provides advanced features of HIVE Authentication. More...
Functions | |
| static void | FHiveAuthV4::Helper::SyncAccount (const EHiveProviderType &ProviderType, const FHiveAuthV4HelperDelegate &Delegate) |
| Helps to inform whether accounts conflict or not when executing the provided as well as other APIs. More... | |
| static void | FHiveAuthV4::Helper::SignIn (const FHiveAuthV4HelperDelegate &Delegate) |
| Player sign-in More... | |
| static void | FHiveAuthV4::Helper::SignOut (const FHiveAuthV4HelperDelegate &Delegate) |
| Player sign-out More... | |
| static void | FHiveAuthV4::Helper::PlayerDelete (const FHiveAuthV4HelperDelegate &Delegate) |
| 사용자 삭제 More... | |
| static void | FHiveAuthV4::Helper::Connect (const EHiveProviderType &ProviderType, const FHiveAuthV4HelperDelegate &Delegate) |
| Provider Connection More... | |
| static void | FHiveAuthV4::Helper::Disconnect (const EHiveProviderType &ProviderType, const FHiveAuthV4HelperDelegate &Delegate) |
| Provider disconnetion More... | |
| static void | FHiveAuthV4::Helper::ShowAchievements (const FHiveAuthV4HelperDelegate &Delegate) |
| Queries Achievements More... | |
| static void | FHiveAuthV4::Helper::ShowLeaderboard (const FHiveAuthV4HelperDelegate &Delegate) |
| Queries leaderboard More... | |
| static void | FHiveAuthV4::Helper::AchievementsReveal (const FString &achievementId, const FHiveAuthV4HelperDelegate &Delegate) |
| Reveal hidden achievement. More... | |
| static void | FHiveAuthV4::Helper::AchievementsUnlock (const FString &achievementId, const FHiveAuthV4HelperDelegate &Delegate) |
| Unlock achievement. More... | |
| static void | FHiveAuthV4::Helper::AchievementsIncrement (const FString &AchievementId, int64 value, const FHiveAuthV4HelperDelegate &Delegate) |
| Increases achievement figures. More... | |
| static void | FHiveAuthV4::Helper::LeaderboardsSubmitScore (const FString &LeaderboardId, int64 value, const FHiveAuthV4HelperDelegate &Delegate) |
| It update the leaderboard score. More... | |
| static void | FHiveAuthV4::Helper::ShowConflict (const FHiveAuthV4HelperDelegate &Delegate) |
| Displays conflict status, and HIVE UI avilable to select an account. More... | |
| static void | FHiveAuthV4::Helper::ShowConflict (const FHiveConflictSingleViewData &ViewData, const FHiveAuthV4HelperDelegate &Delegate) |
| Displays conflict status, and HIVE UI which is available to select an account as well as shows game information. More... | |
| static void | FHiveAuthV4::Helper::SwitchAccount (const FHiveAuthV4HelperDelegate &Delegate) |
| If accounts conflict, sign out the current player and try to sign in with the account signed in on the user device. More... | |
| static void | FHiveAuthV4::Helper::ResolveConflict (const FHiveAuthV4HelperDelegate &Delegate) |
| In case it is not changed the currently signed-in account after accounts conflict. More... | |
| static TArray< EHiveProviderType > | FHiveAuthV4::Helper::GetIDPList () |
| Receives the Provider lists sent by SDK. More... | |
| static void | FHiveAuthV4::Helper::ShowGameCenterLoginCancelDialog (const FHiveAuthV4HelperOnDialogDismissDelegate &Delegate) |
| If a sign-in window of Game Center is not displayed, show its status and display a UI to inform how to sign in the Game Center. More... | |
Provides advanced features of HIVE Authentication.
The detailed functions provided by this class are as follows.
|
static |
Increases achievement figures.
Achievement figures is added as much as value set by the API call, not by setting.
If the total sum is Max, the achievement is automatically accomplished.
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to request achievementsIncrement | - |
| RESPONSE_FAIL | AuthV4GoogleResponseFailAchievementsIncrement | Failed to request achievementsIncrement | - |
| AchievementId | achievements's key value |
| value | value |
| Delegate | FHiveAuthV4HelperDelegate achievementsIncrement result callback |
|
static |
Reveal hidden achievement.
Achievements are only revealed at 0%, not achieved.
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to request achievementsReveal | - |
| RESPONSE_FAIL | AuthV4GoogleResponseFailAchievementsReveal | Failed to request achievementsReveal | - |
| achievementId | achievements's key value |
| Delegate | FHiveAuthV4HelperDelegate achievementsReveal result callback |
|
static |
Unlock achievement.
Whether hidden or open, achievement is achieved at 100%.
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to request achievementsUnlock | - |
| RESPONSE_FAIL | AuthV4GoogleResponseFailAchievementsUnlock | Failed to request achievementsUnlock | - |
| achievementId | achievements's key value |
| Delegate | FHiveAuthV4HelperDelegate achievementsUnlock result callback |
|
static |
Provider Connection
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to conenct with Provider | - |
| NEED_INITIALIZE | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| CANCELED | AuthV4AppleLoginCancel | If a sign-in window of Game Center is not displayed or the sign-in on Game Center is cancelled, | use AuthV4.helper.showGameCenterLoginCancelDialog() API or implement directly to inform how to sign in the Game Center |
| CONFLICT_PLAYER | AuthV4ConflictPlayer | the player ID of the Provider to be connected already existed playerInfo: The information of conflicted account | Follow the resolution in accordance with the type of account conflicts |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper Connect result callback |
|
static |
Provider disconnetion
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to discconect with Provider | - |
| NEED_INITIALIZE | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| INVALID_PARAM | AuthV4ProviderAlreadtDisconnected | The Provider requested to disconnect was not connected with the account | - |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper Disconnect result callback |
|
static |
Receives the Provider lists sent by SDK.
|
static |
It update the leaderboard score.
The score corresponding to the leaderboardId is updated with the score value.
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to request LeaderboardsSubmitScore | - |
| RESPONSE_FAIL | AuthV4GoogleResponseFailLeaderboardsSubmitScore | Failed to request LeaderboardsSubmitScore | - |
| LeaderboardId | leaderboard's key value |
| value | Leaderboard score |
| Delegate | FHiveAuthV4HelperDelegate LeaderboardsSubmitScore result callback |
|
static |
사용자 삭제
\~korean
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | 로그아웃 성공 | - |
| NEED_INITIALIZED | AuthV4NotInitialized | HIVE SDK가 초기화되지 않은 경우 | AuthV4.setup() API로 HIVE SDK 초기화 |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper PlayerDelete 결과 통지 |
Player delete
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to sign out | - |
| NEED_INITIALIZED | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper PlayerDelete result callback |
|
static |
In case it is not changed the currently signed-in account after accounts conflict.
| ErrorCode | Code | Description |
| CANCELED | AuthV4PlayerResolved | Not changed the currently signed-in account after accounts conflict |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper Resolve Conflict result callback |
|
static |
Queries Achievements
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to request Acheivement | - |
| NEED_INITIALIZE | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| CANCELED | AuthV4AppleLoginCancel | If a sign-in window of Game Center is not displayed or the sign-in on Game Center is cancelled, | use AuthV4.helper.showGameCenterLoginCancelDialog() API or implement directly to inform how to sign in the Game Center |
| CONFLICT_PLAYER | AuthV4ConflictPlayer | The account signed in on user device is mismatched with the PGS/Game Center account on the game or the player ID of the Provider to be connected already existed | Follow the resolution in accordance with the type of account conflicts |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper Show achievements result callback |
|
static |
Displays conflict status, and HIVE UI avilable to select an account.
| ErrorCode | Code | Description |
| PLAYER_CHANGE | AuthV4PlayerChange | Succeeded to change the player after accounts conflict |
| CANCELED | AuthV4PlayerResolved | Not changed the currently signed-in account after accounts conflict |
| INVALID_PARAM | AuthV4InvalidConflictInfo | Requested to resolve account conflicts not happened |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper Show Conflict result callback |
|
static |
Displays conflict status, and HIVE UI which is available to select an account as well as shows game information.
| ErrorCode | Code | Description |
| PLAYER_CHANGE | AuthV4PlayerChange | Succeeded to change the player after accounts conflict |
| CANCELED | AuthV4PlayerResolved | Not changed the currently signed-in account after accounts conflict |
| INVALID_PARAM | AuthV4InvalidConflictInfo | Requested to resolve account conflicts not happened |
| ViewData | ConflictSingleViewInfo Game information of the account-conflicted player |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper Show Conflict result callback |
|
static |
If a sign-in window of Game Center is not displayed, show its status
and display a UI to inform how to sign in the Game Center.
| Delegate | FHiveAuthV4HelperOnDialogDismissDelegate callback whether account notification popup is closed or not |
|
static |
Queries leaderboard
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to request leaderboards | - |
| NEED_INITIALIZE | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| CANCELED | AuthV4AppleLoginCancel | If a sign-in window of Game Center is not displayed or the sign-in on Game Center is cancelled, | use AuthV4.helper.showGameCenterLoginCancelDialog() API or implement directly to inform how to sign in the Game Center |
| CONFLICT_PLAYER | AuthV4ConflictPlayer | The account signed in on user device is mismatched with the PGS/Game Center account on the game or the player ID of the Provider to be connected already existed | Follow the resolution in accordance with the type of account conflicts |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper Show leaderboard result callback |
|
static |
Player sign-in
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to sign in playerInfo: The information of signed-in player | - |
| NEED_INITIALIZE | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| IN_PROGRESS | AuthV4InProgressSignIn | Requested to process SignIn while sign-in is in progress | Wait for the SignIn request in progress |
| CONFLICT_PLAYER | AuthV4ConflictPlayer | The account signed in on user device is mismatched with the PGS/Game Center account on the game or the player ID of the Provider to be connected already existed playerInfo: The information of conflicted account | Follow the resolution in accordance with the type of account conflicts |
| INVALID_SESSION | AuthV4HelperImplifiedLoginFail | Required Explicit Login due to failure of Implicit Login | Query the supported Provider lists by calling AuthV4.Helper.getIDPList() and implement Explicit Login UI, or implement Explicit Login by calling AuthV4.showSignIn() of HIVE UI |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper Sign In result callback |
|
static |
Player sign-out
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to sign out | - |
| NEED_INITIALIZE | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper Sign Out result callback |
|
static |
If accounts conflict, sign out the current player
and try to sign in with the account signed in on the user device.
| ErrorCode | Code | Description |
| PLAYER_CHANGE | AuthV4PlayerChange | Succeeded to change the player after accounts conflict |
| Delegate | FHiveAuthV4HelperDelegate AuthV4Helper Switch Account result callback |
|
static |
Helps to inform whether accounts conflict or not when executing the provided as well as other APIs.
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Account normal state | - |
| NEED_INITIALIZE | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| CONFLICT_PLAYER | AuthV4ConflictPlayer | Mismatched the signed-in account with PGS/GameCenter account on the device | Follow the resolution in accordance with the type of account conflicts |
| NOT_SUPPORTED | AuthV4NotSupportedProviderType | Queried account state with other provider types except PGS/GameCenter | - |
| providerType | ProviderType to request syncronization |
| listener | onAuthV4Helper AuthV4Helper Sync Account result callback |