Provides HIVE SDK initialization and HIVE authentication functions
The HIVE SDK performs initialization based on the xml configuration file.
More...
Classes | |
enum | com.hive.Auth.LoginType |
HIVE login type definition. More... | |
enum | com.hive.Auth.AuthMaintenanceActionType |
Definition of actions to be taken when the button is pressed on the maintenance popup. More... | |
class | com.hive.Auth.Account |
HIVE authentication user information. More... | |
class | com.hive.Auth.AuthInitResult |
Information to be delivered when the result is notified after HIVE SDK initialization. More... | |
class | com.hive.Auth.AuthMaintenanceInfo |
Server maintenance and update status information. More... | |
class | com.hive.Auth |
Provides HIVE SDK initialization and HIVE authentication functions The HIVE SDK performs initialization based on the xml configuration file. More... | |
Functions | |
static void | com.hive.Auth.initialize (AuthInitializeListener listener) |
Initialize HIVE SDK If the app is launched for the first time, you will be exposed to the terms and acceptance process. More... | |
static LoginType | com.hive.Auth.getLoginType () |
After initializing the SDK, it returns the login information that can be executed according to the existing login information. More... | |
static void | com.hive.Auth.login (LoginType loginType, AuthLoginListener listener) |
Request HIVE login according to given login type. More... | |
static void | com.hive.Auth.showLoginSelection (Map< String, Object > currentVidData, Map< String, Object > usedVidData, AuthLoginListener listener) |
Performing a HIVE login while logged in as a guest may result in account conflicts and require the user to switch HIVE accounts. More... | |
static void | com.hive.Auth.bindLogin (String selectedVid, AuthLoginListener listener) |
If the user selects one of the conflicting HIVE accounts, the result must be sent to the HIVE authentication server. More... | |
static void | com.hive.Auth.logout (AuthLogoutListener listener) |
Once you have completed your HIVE login, you are issued a user's unique ID, VID, and session key. More... | |
static Account | com.hive.Auth.getAccount () |
Returns the authentication information of HIVE user. More... | |
static void | com.hive.Auth.showTerms (final AuthShowTermsListener listener) |
Display HIVE Terms and Conditions. More... | |
static void | com.hive.Auth.checkMaintenance (boolean isShow, AuthMaintenanceListener listener) |
Display the maintenance status and return data. More... | |
static void | com.hive.Auth.showAdultConfirm (final AuthAdultConfirmListener listener) |
Request adult verification. More... | |
static void | com.hive.Auth.reset () |
Initialize all data used by the SDK, including authentication information. More... | |
void | com.hive.Auth.AuthInitializeListener.onAuthInitialize (ResultAPI result, AuthInitResult authInitResult) |
Notify HIVE SDK initialization result listener. More... | |
void | com.hive.Auth.AuthLoginListener.onAuthLogin (ResultAPI result, LoginType loginType, Account currentAccount, Account usedAccount) |
HIVE login result listener. More... | |
void | com.hive.Auth.AuthLogoutListener.onAuthLogout (ResultAPI result) |
HIVE logout result listener. More... | |
void | com.hive.Auth.AuthShowTermsListener.onAuthShowTerms (ResultAPI result) |
The result of displaying the terms and conditions. More... | |
void | com.hive.Auth.AuthMaintenanceListener.onAuthMaintenance (ResultAPI result, AuthMaintenanceInfo authMaintenanceInfo) |
Maintenance popup result. More... | |
void | com.hive.Auth.AuthAdultConfirmListener.onAuthAdultConfirm (ResultAPI result) |
Adult verification pop-up result. More... | |
Provides HIVE SDK initialization and HIVE authentication functions
The HIVE SDK performs initialization based on the xml configuration file.
|
static |
If the user selects one of the conflicting HIVE accounts, the result must be sent to the HIVE authentication server.
Calling this method sends the result to the HIVE authentication server with the given user's unique ID.
selectedVid | The unique ID of the user selected by the user |
listener | API call result listener |
|
static |
Display the maintenance status and return data.
When the HIVE SDK initialization is completed, you need to check the server maintenance and update status.
Server maintenance and update can block lower version after update of game client, or block game connection during game server maintenance time.
HIVE provides a function to show popups in the order of server maintenance, game forced update and notice in accordance with the information set in the back office.
isShow | Whether to show maintenance popups in HIVE SDK If this value is true, maintenance popup UI provided by HIVE SDK is used, if false, data for customizing UI is received. |
listener | API call result |
|
static |
Returns the authentication information of HIVE user.
|
static |
After initializing the SDK, it returns the login information that can be executed according to the existing login information.
|
static |
Initialize HIVE SDK
If the app is launched for the first time, you will be exposed to the terms and acceptance process.
listener | API call result |
|
static |
Request HIVE login according to given login type.
loginType | GUEST : HIVE Guest login ACCOUNT : HIVE Login AUTO : Auto Login (session key remains in the device) |
listener | API call result |
|
static |
Once you have completed your HIVE login, you are issued a user's unique ID, VID, and session key.
* When requesting logout, it initializes VID and session key
(Note: Never logout at guest login)
listener | API call result listener |
void com.hive.Auth.AuthAdultConfirmListener.onAuthAdultConfirm | ( | ResultAPI | result | ) |
Adult verification pop-up result.
result | API call result |
void com.hive.Auth.AuthInitializeListener.onAuthInitialize | ( | ResultAPI | result, |
AuthInitResult | authInitResult | ||
) |
Notify HIVE SDK initialization result listener.
result | API call result |
authInitResult | HIVE SDK initialization result |
void com.hive.Auth.AuthLoginListener.onAuthLogin | ( | ResultAPI | result, |
LoginType | loginType, | ||
Account | currentAccount, | ||
Account | usedAccount | ||
) |
HIVE login result listener.
result | API call result |
loginType | HIVE login type according to HIVE login result If loginType is LoginType.SELECT, it should ask user selection according to HIVE account conflict. |
currentAccount | HIVE account information of user who completed HIVE login |
usedAccount | Hive account information of user who registered in HIVE authentication server |
void com.hive.Auth.AuthLogoutListener.onAuthLogout | ( | ResultAPI | result | ) |
HIVE logout result listener.
result | API call result |
void com.hive.Auth.AuthMaintenanceListener.onAuthMaintenance | ( | ResultAPI | result, |
AuthMaintenanceInfo | authMaintenanceInfo | ||
) |
Maintenance popup result.
result | API call result |
authMaintenanceInfo | Data for pop-ups in game |
void com.hive.Auth.AuthShowTermsListener.onAuthShowTerms | ( | ResultAPI | result | ) |
The result of displaying the terms and conditions.
result | API call result |
|
static |
Initialize all data used by the SDK, including authentication information.
Used for HIVE SDK interworking and testing.
|
static |
Request adult verification.
For some games that require adult verification, such as GoStop / poker, adult verification is provided.
listener | Adult verification result |
|
static |
Performing a HIVE login while logged in as a guest may result in account conflicts and require the user to switch HIVE accounts.
Calling this method shows a dialog box to the user to select one of the conflicting accounts.
currentVidData | Information of logged in user |
usedVidData | User information registered in HIVE authentication server |
listener | API call result |
|
static |
Display HIVE Terms and Conditions.
When HIVE SDK is initialized, the user will go through the agreement process.
After this, the game should expose Personal information processing policies and terms and services in the game settings.
listener | API call result listener |