HIVE SDK for Android

Classes | Functions
Auth

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...
 

Detailed Description

Provides HIVE SDK initialization and HIVE authentication functions
The HIVE SDK performs initialization based on the xml configuration file.



Function Documentation

§ bindLogin()

static void com.hive.Auth.bindLogin ( String  selectedVid,
AuthLoginListener  listener 
)
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.

Parameters
selectedVidThe unique ID of the user selected by the user
listenerAPI call result listener

§ checkMaintenance()

static void com.hive.Auth.checkMaintenance ( boolean  isShow,
AuthMaintenanceListener  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.

Parameters
isShowWhether 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.
listenerAPI call result

§ getAccount()

static Account com.hive.Auth.getAccount ( )
static

Returns the authentication information of HIVE user.

Returns
The authentication information of HIVE user
See also
Account

§ getLoginType()

static LoginType com.hive.Auth.getLoginType ( )
static

After initializing the SDK, it returns the login information that can be executed according to the existing login information.

Returns
Possible login type

§ initialize()

static void com.hive.Auth.initialize ( AuthInitializeListener  listener)
static

Initialize HIVE SDK
If the app is launched for the first time, you will be exposed to the terms and acceptance process.

Parameters
listenerAPI call result

§ login()

static void com.hive.Auth.login ( LoginType  loginType,
AuthLoginListener  listener 
)
static

Request HIVE login according to given login type.

Parameters
loginTypeGUEST : HIVE Guest login
ACCOUNT : HIVE Login
AUTO : Auto Login (session key remains in the device)
listenerAPI call result

§ logout()

static void com.hive.Auth.logout ( AuthLogoutListener  listener)
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)

Parameters
listenerAPI call result listener

§ onAuthAdultConfirm()

void com.hive.Auth.AuthAdultConfirmListener.onAuthAdultConfirm ( ResultAPI  result)

Adult verification pop-up result.

Parameters
resultAPI call result

§ onAuthInitialize()

void com.hive.Auth.AuthInitializeListener.onAuthInitialize ( ResultAPI  result,
AuthInitResult  authInitResult 
)

Notify HIVE SDK initialization result listener.

Parameters
resultAPI call result
authInitResultHIVE SDK initialization result

§ onAuthLogin()

void com.hive.Auth.AuthLoginListener.onAuthLogin ( ResultAPI  result,
LoginType  loginType,
Account  currentAccount,
Account  usedAccount 
)

HIVE login result listener.

Parameters
resultAPI call result
loginTypeHIVE login type according to HIVE login result
If loginType is LoginType.SELECT, it should ask user selection according to HIVE account conflict.
currentAccountHIVE account information of user who completed HIVE login
usedAccountHive account information of user who registered in HIVE authentication server

§ onAuthLogout()

void com.hive.Auth.AuthLogoutListener.onAuthLogout ( ResultAPI  result)

HIVE logout result listener.

Parameters
resultAPI call result

§ onAuthMaintenance()

void com.hive.Auth.AuthMaintenanceListener.onAuthMaintenance ( ResultAPI  result,
AuthMaintenanceInfo  authMaintenanceInfo 
)

Maintenance popup result.

Parameters
resultAPI call result
authMaintenanceInfoData for pop-ups in game

§ onAuthShowTerms()

void com.hive.Auth.AuthShowTermsListener.onAuthShowTerms ( ResultAPI  result)

The result of displaying the terms and conditions.

Parameters
resultAPI call result

§ reset()

static void com.hive.Auth.reset ( )
static

Initialize all data used by the SDK, including authentication information.


Used for HIVE SDK interworking and testing.

§ showAdultConfirm()

static void com.hive.Auth.showAdultConfirm ( final AuthAdultConfirmListener  listener)
static

Request adult verification.


For some games that require adult verification, such as GoStop / poker, adult verification is provided.

Parameters
listenerAdult verification result

§ showLoginSelection()

static void com.hive.Auth.showLoginSelection ( Map< String, Object >  currentVidData,
Map< String, Object >  usedVidData,
AuthLoginListener  listener 
)
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.

Parameters
currentVidDataInformation of logged in user
usedVidDataUser information registered in HIVE authentication server
listenerAPI call result

§ showTerms()

static void com.hive.Auth.showTerms ( final AuthShowTermsListener  listener)
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.

Parameters
listenerAPI call result listener
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. Terms of Use Privacy Policy