Provides advanced features of HIVE Authentication. More...
Classes | |
| class | hive.AuthV4.Helper.ConflictSingleViewInfo |
| The class showing the conflicted account's game data when user accounts conflict More... | |
Functions | |
| delegate void | hive.AuthV4.Helper.onAuthV4Helper (ResultAPI result, PlayerInfo playerInfo) |
| AuthV4Helper API request result callback. More... | |
| delegate void | hive.AuthV4.Helper.onAuthV4DialogDismiss (bool isDismiss) |
| AuthV4 Result callback after Game Center login pops up More... | |
| static void | hive.AuthV4.Helper.syncAccount (ProviderType providerType, onAuthV4Helper listener) |
| Helps to inform whether accounts conflict or not when executing the provided as well as other APIs. More... | |
| static void | hive.AuthV4.Helper.signIn (onAuthV4Helper listener) |
| Player sign-in More... | |
| static void | hive.AuthV4.Helper.signOut (onAuthV4Helper listener) |
| Player sign-out More... | |
| static void | hive.AuthV4.Helper.playerDelete (onAuthV4Helper listener) |
| Player delete More... | |
| static void | hive.AuthV4.Helper.connect (ProviderType providerType, onAuthV4Helper listener) |
| Provider Connection More... | |
| static void | hive.AuthV4.Helper.disconnect (ProviderType providerType, onAuthV4Helper listener) |
| Connects Provider More... | |
| static void | hive.AuthV4.Helper.showLeaderboard (onAuthV4Helper listener) |
| Queries leaderboard More... | |
| static void | hive.AuthV4.Helper.showAchievements (onAuthV4Helper listener) |
| Queries Acheivements More... | |
| static void | hive.AuthV4.Helper.showConflict (onAuthV4Helper listener) |
| Displays conflict status, and HIVE UI avilable to select an account. More... | |
| static void | hive.AuthV4.Helper.showConflict (ConflictSingleViewInfo viewInfo, onAuthV4Helper listener) |
| Displays conflict status, and HIVE UI which is available to select an account as well as shows game information. More... | |
| static void | hive.AuthV4.Helper.switchAccount (onAuthV4Helper listener) |
| 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 | hive.AuthV4.Helper.resolveConflict (onAuthV4Helper listener) |
| In case it is not changed the currently signed-in account after accounts conflict. More... | |
| static List< ProviderType > | hive.AuthV4.Helper.getIDPList () |
| Receives the Provider lists sent by SDK. More... | |
| static void | hive.AuthV4.Helper.showGameCenterLoginCancelDialog (onAuthV4DialogDismiss listener) |
| 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. | |
| static void | hive.AuthV4.Helper.leaderboardsSubmitScore (String leaderboardId, long score) |
| It update the leaderboard score. More... | |
| static void | hive.AuthV4.Helper.leaderboardsSubmitScore (String leaderboardId, long score, onAuthV4Helper listener) |
| It update the leaderboard score. More... | |
| static void | hive.AuthV4.Helper.achievementsReveal (String achievementId) |
| Reveal hidden achievement. More... | |
| static void | hive.AuthV4.Helper.achievementsReveal (String achievementId, onAuthV4Helper listener) |
| Reveal hidden achievement. More... | |
| static void | hive.AuthV4.Helper.achievementsUnlock (String achievementId) |
| Unlock achievement. More... | |
| static void | hive.AuthV4.Helper.achievementsUnlock (String achievementId, onAuthV4Helper listener) |
| Unlock achievement. More... | |
| static void | hive.AuthV4.Helper.achievementsIncrement (String achievementId, int value) |
| Increases achievement figures. More... | |
| static void | hive.AuthV4.Helper.achievementsIncrement (String incrementalAchievementId, int value, onAuthV4Helper listener) |
| Increases achievement figures. More... | |
Variables | |
| String | hive.AuthV4.AuthV4MaintenanceInfo.title |
| Title. | |
| String | hive.AuthV4.AuthV4MaintenanceInfo.message |
| Contents. | |
| String | hive.AuthV4.AuthV4MaintenanceInfo.button |
| Text on the button ex) OK. | |
| AuthV4MaintenanceActionType | hive.AuthV4.AuthV4MaintenanceInfo.action |
| Actions to be taken when the button is tapped. | |
| String | hive.AuthV4.AuthV4MaintenanceInfo.url |
| URL to be browsed when action is OPEN_URL. | |
| int | hive.AuthV4.AuthV4MaintenanceInfo.remainingTime |
| When action is EXIT, the time in seconds remaining until the maintenance completes. The time is updated in real time, and the app will be closed at 0 seconds. | |
| String | hive.AuthV4.AuthV4MaintenanceInfo.startDate |
| Maintenance start time YYYY-mm-dd HH:ii. | |
| String | hive.AuthV4.AuthV4MaintenanceInfo.endDate |
| Maintenance end time YYYY-mm-dd HH:ii. | |
| String | hive.AuthV4.AuthV4MaintenanceInfo.customerButton |
| Customer Service Text on the button. | |
| String | hive.AuthV4.AuthV4MaintenanceInfo.customerLink |
| The URL to go to when the Customer Service button is clicked. | |
| List< AuthV4MaintenanceExtraButton > | hive.AuthV4.AuthV4MaintenanceInfo.exButtons = new List<AuthV4MaintenanceExtraButton>() |
| Button information to configure when customizing the maintenance popup. | |
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.
| achievementId | achievements's key value |
| value | value |
|
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 | - |
| incrementalAchievementId | achievements's key value |
| value | value |
| listener | onAuthV4Helper achievementsIncrement result callback |
|
static |
Reveal hidden achievement.
Achievements are only revealed at 0%, not achieved.
| achievementId | achievements's key value |
|
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 |
| listener | onAuthV4Helper achievementsReveal result callback |
|
static |
Unlock achievement.
Whether hidden or open, achievement is achieved at 100%.
| achievementId | achievements's key value |
|
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 |
| listener | onAuthV4Helper achievementsUnlock result callback |
|
static |
Provider Connection
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to connect with Provider | - |
| NEED_INITIALIZED | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| 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 |
| listener | AuthV4HelperListener AuthV4Helper Connect result callback |
|
static |
Connects Provider
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Completed to disconnect with Provider | - |
| NEED_INITIALIZED | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| INVALID_PARAM | AuthV4ProviderAlreadyDisconnected | The Provider requested to disconnect was not connected with the account | - |
| listener | AuthV4HelperListener 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.
| leaderboardId | leaderboard's key value |
| score | Leaderboard score |
|
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 |
| score | Leaderboard score |
| listener | onAuthV4Helper LeaderboardsSubmitScore result callback |
| delegate void hive.AuthV4.Helper.onAuthV4DialogDismiss | ( | bool | isDismiss | ) |
AuthV4 Result callback after Game Center login pops up
| isDismiss | : Returns true if the popup is successfully closed. |
| delegate void hive.AuthV4.Helper.onAuthV4Helper | ( | ResultAPI | result, |
| PlayerInfo | playerInfo | ||
| ) |
AuthV4Helper API request result callback.
| result | ErrorCodes and Codes available for result values are as follows.
| ||||||||||||||||||||||||||||||
| playerInfo | Player information depending on results are as follows.
|
<>
|
static |
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 |
| listener | AuthV4HelperListener AuthV4Helper Delete 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 |
| listener | AuthV4HelperListener AuthV4Helper Resolve Conflict result callback |
|
static |
Queries Acheivements
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to request Acheivement | - |
| NEED_INITIALIZED | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| IN_PROGRESS | AuthV4InProgressShowAcheivements | Acheivements 노출이 이미 진행중 | 이미 수행 중인 경우 중복으로 API 호출이 불가능. 이전 기능을 종료한 후 호출 |
| CANCEL | AuthV4AppleLoginCancel | 게임센터에 로그인되지 않은 상태로 API 호출시 로그인 UI에서 취소한 경우 | showGameCenterLoginCancelDialog API를 이용하여 다시 로그인하는 방법을 가이드 |
| 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 |
| listener | AuthV4HelperListener AuthV4Helper Show achievements 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 |
| CANCEL | AuthV4PlayerResolved | 계정 충돌이 발생한 후 계정 전환을 취소한 경우 |
| INVALID_PARAM | AuthV4InvalidConflictInfo | Requested to resolve account conflicts not happened |
| conflictData | HIVEConflictSingleViewInfo Game information of the account-conflicted player |
| listener | AuthV4HelperListener AuthV4Helper Show Conflict 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 |
| CANCEL | AuthV4PlayerResolved | 계정 충돌이 발생한 후 계정 전환을 취소한 경우 |
| INVALID_PARAM | AuthV4InvalidConflictInfo | Requested to resolve account conflicts not happened |
| listener | AuthV4HelperListener AuthV4Helper Show Conflict result callback |
|
static |
Queries leaderboard
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to request leaderboards | - |
| NEED_INITIALIZED | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| IN_PROGRESS | AuthV4InProgressShowLeaderboard | LeaderBoard 노출이 이미 진행중 | 이미 수행 중인 경우 중복으로 API 호출이 불가능. 이전 기능을 종료한 후 호출 |
| CANCEL | AuthV4AppleLoginCancel | 게임센터에 로그인되지 않은 상태로 API 호출시 로그인 UI에서 취소한 경우 | showGameCenterLoginCancelDialog API를 이용하여 다시 로그인하는 방법을 가이드 |
| 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 |
| listener | AuthV4HelperListener 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_INITIALIZED | 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 |
| listener | AuthV4HelperListener AuthV4Helper Sign In result callback |
|
static |
Player sign-out
| ErrorCode | Code | Description | Solution |
| SUCCESS | Success | Succeeded to sign out | - |
| RESPONSE_FAIL | AuthV4ServerResponseError | 로그아웃 요청 실패 | 재시도 |
| NETWORK | AuthV4NetworkError,AuthV4InvalidServerResponse | 네트워크 오류 | 재시도 |
| NEED_INITIALIZED | AuthV4NotInitialized | HIVE SDK not initialized | Initialize HIVE SDK by implementing AuthV4.setup() API |
| listener | AuthV4HelperListener 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 |
| listener | AuthV4HelperListener 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_INITIALIZED | 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 |
| INVALID_SESSION | AuthV4SigninFirst | 로그인이 되어있지 않습니다. | AuthV4.helper.signIn API를 호출하여 로그인을 수행 |
| NOT_SUPPORTED | AuthV4NotSupportedProviderType | HIVE에서 지원하지 않는 Provider | HIVE에서 지원하는 provider를 이용 |
| providerType | ProviderType to request syncronization |
| listener | AuthV4HelperListener AuthV4Helper Sync Account result callback |