HIVE SDK for Unity3D

Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
hive.AuthV4 Class Reference

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

Classes

class  AuthV4MaintenanceExtraButton
 Button information for customizing the maintenance popup action : Actions to be taken when the button is pressed
url : URL to be browsed when action is OPEN_URL
button : Text on the button ex) OK
More...
 
class  AuthV4MaintenanceInfo
 Server Maintenance and Update status display information title : Title
message : Contents
button : Text on the button ex) OK
action : Actions to be taken when the button is pressed
url : URL to be browsed when action is OPEN_URL
remainingTime : When action is EXIT, the time in seconds remaining until the maintenance completes. More...
 
class  PlayerInfo
 Sign-in User Information it includes user's tocken and DID value along with ProfileInfo. More...
 
class  ProfileInfo
 User Profile Information playerID : User's unique ID
playerName : The nickname of the user to be shown outside. More...
 
class  ProviderInfo
 Identity Provider (IdP) Information It contains the UserId of the associated Identity Provider. More...
 

Public Types

enum  ProviderType
 Provider Types AUTO is for Automatic Login
If the result of isAutoSignIn() call is true, You need to set parameter as AUTO when you call SignIn. More...
 
enum  AuthV4MaintenanceActionType
 Actions to be taken when a button is pressed on the maintenance popup. More...
 

Public Member Functions

delegate void onAuthV4Setup (ResultAPI result, Boolean isAutoSignIn, String did, List< ProviderType > providerTypeList)
 AuthV4 initialization result callback result : When initial initialize is executed, it fails if it does not receive DID or Provider List.
 
delegate void onAuthV4SignIn (ResultAPI result, PlayerInfo playerInfo)
 AuthV4 Sign-in result callback result : If it is not SUCCESS, you should return to the login screen again.
 
delegate void onAuthV4SignOut (ResultAPI result)
 AuthV4 Sign out result callback result : If setup fails (NEED_INITIALIZE) or SignIn or SignOut is in progress (IN_PROGRESS), it may fail.
Otherwise, success.

 
delegate void onAuthV4Connect (ResultAPI result, PlayerInfo conflictPlayer)
 AuthV4 Provider connect result callback result :If ProviderType is not supported (INVALID_PARAM)
or if the Sign-in is in progress (IN_PROGRESS), it may fail.
 
delegate void onAuthV4Disconnect (ResultAPI result)
 AuthV4 Provider disconnect result callback It pass the disconnect status to the authentication server and then logout the requested provider.
 
delegate void onAuthV4GetProfile (ResultAPI result, List< ProfileInfo > profileInfoList)
 AuthV4 Profile information request result callback The profile information of the playerIds which are requested to the profile server is returned.
 
delegate void onAuthV4ShowProfile (ResultAPI result)
 AuthV4 Profile UI request result callback Invoked when the UI window is closed.
 
delegate void onAuthV4ShowInquiry (ResultAPI result)
 AuthV4 1:1 Inquiry UI request result callback Invoked when the UI window is closed.
 
delegate void onAuthV4ShowMyInquiry (ResultAPI result)
 AuthV4 My Inquiry UI request result callback Invoked when the UI window is closed.
 
delegate void onAuthV4ShowChatbotInquiry (ResultAPI result)
 AuthV4 Chatbot 1:1 Inquiry UI request result callback Invoked when the UI window is closed.
 
delegate void onAuthV4ShowTerms (ResultAPI result)
 AuthV4 Terms of Service UI request result callback Invoked when the UI window is closed.
 
delegate void onAuthV4AdultConfirm (ResultAPI result)
 AuthV4 Adult authentication request result callback Invoked when the UI window is closed.
 
delegate void onDeviceProviderInfo (ResultAPI result, ProviderInfo providerInfo)
 AuthV4 Provider status request result callback If the requested provider is not logged in, it tries to login.
 
delegate void onAuthV4Maintenance (ResultAPI result, List< AuthV4MaintenanceInfo > maintenanceInfoList)
 AuthV4 Sever maintenance check request result callback Check whether the server is in the server maintenance with the ServerId set in Configuration.
 
delegate void onGetProviderFriendsList (ResultAPI result, ProviderType providerType, Dictionary< String, Int64 > providerUserIdList)
 HIVE SDK Provider friend list request result callback result : Result of API.
 
delegate void onAuthV4ResolveConflict (ResultAPI result)
 Result callback of resolveConflict(AuthV4ResolveConflictListener) call AuthV4.resolveConflict() use it.
 
delegate void onAuthV4ShowDeviceManagement (ResultAPI result)
 showDeviceManagement(AuthV4ShowDeviceManagementListener) call AuthV4.showDeviceManagement() use it.
 
delegate void onAuthV4GetHiveTalkPlusLoginToken (ResultAPI result, string loginToken)
 getHiveTalkPlusLoginToken(AuthV4GetHiveTalkPlusLoginTokenListener) call AuthV4.getHiveTalkPlusLoginToken() use it.
 
delegate void onAuthV4DialogDismiss (bool isDismiss)
 AuthV4 Result callback after Game Center login pops up


 

Static Public Member Functions

static void setup (onAuthV4Setup listener)
 AuthV4 Perform initialization.
 
static void signIn (ProviderType providerType, onAuthV4SignIn listener)
 Requests signIn according to the given providerType.
 
static void signInWithAuthKey (String authKey, onAuthV4SignIn listener)
 Requests signIn with authKey gained from customized provider login implementation.
 
static void signOut (onAuthV4SignOut listener)
 it remove the local session.
 
static void playerDelete (onAuthV4SignOut listener)
 Delete the account and remove the local session.
 
static void connect (ProviderType providerType, onAuthV4Connect listener)
 It connects to the currently requested provider for the currently signed-in user.
 
static void connectWithAuthKey (String authKey, onAuthV4Connect listener)
 자체 구현한 커스텀 로그인 후 획득한 authKey 값으로 connect를 요청 한다.
 
static void disconnect (ProviderType providerType, onAuthV4Disconnect listener)
 Releases the currently signed-in user from the requested provider.
 
static void disconnectWithName (String providerName, onAuthV4Disconnect listener)
 현재 사인-인 된 유저에 요청한 provider 와 연동을 해제 한다.
 
static void selectConflict (Int64 selectedPlayerId, onAuthV4SignIn listener)
 When an account conflict (CONFLICT_PLAYER) occurs due to connect, it notify the selected user to the SDK.
 
static Boolean isAutoSignIn ()
 It returns whether signIn (AUTO) is enabled.
 
static PlayerInfo getPlayerInfo ()
 It returns information about the currently signed-in user.
 
static void getProfile (List< Int64 > playerIdList, onAuthV4GetProfile listener)
 it returns the profile information of the requested playerIds.
 
static void showSignIn (onAuthV4SignIn listener)
 It shows the UI with a list of providers that can sign-in.
 
static void showConflictSelection (JSONObject currentPlayerData, JSONObject conflictPlayerData, onAuthV4SignIn listener)
 It shows UI to select user in conflict state.
 
static void showProfile (Int64 playerId, onAuthV4ShowProfile listener)
 It display the profile UI of the requested playerId.
 
static void showInquiry (onAuthV4ShowInquiry listener)
 It shows the 1: 1 query UI.
 
static void showMyInquiry (onAuthV4ShowMyInquiry listener)
 It shows the my inquiry UI.
 
static void showChatbotInquiry (String additionalInfo, onAuthV4ShowChatbotInquiry listener)
 Show HIVE Chatbot 1:1 inquiry

 
static void showTerms (onAuthV4ShowTerms listener)
 It shows HIVE Terms and Conditions.
 
static void resetAgreement ()
 Initialize the terms agreement record.
 
static void showAdultConfirm (onAuthV4AdultConfirm listener)
 It request adult authentication.
 
static void checkProvider (ProviderType providerType, onDeviceProviderInfo listener)
 It check the status of the requested Provider.
 
static void checkMaintenance (Boolean isShow, onAuthV4Maintenance listener)
 It display maintenance status and return its data.
 
static void checkBlacklist (Boolean isShow, onAuthV4Maintenance listener)
 it check the restriction status of the current user.
 
static void setProviderChangedListener (onDeviceProviderInfo listener)
 It set a listener to be notified whether the information of the linked Provider has changed.
 
static void reset ()
 It initialize all data used by the SDK, including authentication information.
 
static void getProviderFriendsList (ProviderType providerType, onGetProviderFriendsList listener)
 It returns the playerId list information of the friends of the connected user corresponding to the input providerType.
 
static void resolveConflict (onAuthV4ResolveConflict listener)
 It resolve the account conflicts(CONFLICT_PLAYER) caused by connect() call.
 
static void showDeviceManagement (onAuthV4ShowDeviceManagement listener)
 Run the device management service.
 
static void getHiveTalkPlusLoginToken (onAuthV4GetHiveTalkPlusLoginToken listener)
 getHiveTalkPlusLoginToken(AuthV4GetHiveTalkPlusLoginTokenListener) call AuthV4.getHiveTalkPlusLoginToken() use it.
 
static void requestPermissionViewData (onAuthV4RequestPermissionViewData listener)
 권한고지 팝업을 구성하기 위한 데이터를 얻습니다.
 
static void 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.
 

Detailed Description

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



The detailed functions provided by this class are as follows.

Created by hife on 2017. 3. 22

Author
hife
Since
4.3.0

Member Function Documentation

◆ connectWithAuthKey()

static void hive.AuthV4.connectWithAuthKey ( String authKey,
onAuthV4Connect listener )
static

자체 구현한 커스텀 로그인 후 획득한 authKey 값으로 connect를 요청 한다.


Requests connect with authKey gained from customized provider login implementation.


korean

connect 에 성공하게 되면 handler 에 포함되어있는 playerInfo 를 통해 유저 정보를 얻는다.


english

If connect succeeds, you can get the user information through the playerInfo contained in the handler

Parameters
authKeyAuthKey to request connect
listeneronAuthV4Connect AuthV4 connect result callback

◆ disconnectWithName()

static void hive.AuthV4.disconnectWithName ( String providerName,
onAuthV4Disconnect listener )
static

현재 사인-인 된 유저에 요청한 provider 와 연동을 해제 한다.


Releases the currently signed-in user from the requested provider.


korean

인증 서버에 disconnect 상황을 전달하고 이후 요청한 Provider 를 Logout 시킨다.
인증 서버에 전달이 실패할 경우와 Sign 이 진행중이거나 setup 이 되지 않은 상황,
또는 이미 disconnected 된 Provider 일 경우 실패가 될 수 있다.

disconnected 로 인해 연동이 모두 해제될 경우 게스트 상태가 될 수 있으니 주의.


english

It pass the disconnect status to the authentication server and then logout the requested provider.
If delivery fails to the authentication server, if the Sign or setup is in progress,
or if the provider is already disconnected, it may fail.

Note that if all account link are disconnected due to 'disconnect', it may become a guest state.

Parameters
providerNamedisconnect to ProviderName.
listeneronAuthV4Disconnect result : If delivery fails to the authentication server, if the Sign or setup is in progress,
or if the provider is already disconnected, it may fail.
Otherwise, success.

◆ onAuthV4DialogDismiss()

delegate void hive.AuthV4.onAuthV4DialogDismiss ( bool isDismiss)

AuthV4 Result callback after Game Center login pops up

Parameters
isDismiss: Returns true if the popup is successfully closed.

The documentation for this class was generated from the following file:
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy