onAuthV4Helper

abstract fun onAuthV4Helper(result: ResultAPI, playerInfo: AuthV4.PlayerInfo?)

Parameters

result

ErrorCodes and Codes available for result values are as follows.

ErrorCode Code Description
SUCCESS Success Complted the request without account conflicts
NEED_INITIALIZE AuthV4NotInitialized HIVE SDK not initialized
INVALID_SESSION AuthV4SigninFirst Called the APIs required sign-in before sign-in
INVALID_PARAM AuthV4AlreadyAuthorized Called sign-in API again after sign-in
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
PLAYER_CHANGE AuthV4PlayerChange Succeeded to change the player after accounts conflict
CANCELED AuthV4PlayerResolved Not changed the currently signed-in account after accounts conflict
INVALID_SESSION AuthV4HelperImplifiedLoginFail Required Explicit Login due to failure of Implicit Login
IN_PROGRESS AuthV4InProgressSignIn
AuthV4InProgressConnect
AuthV4InProgressShowLeaderboard
AuthV4InProgressShowAchievements
The request is still in progress
playerInfo

Player information depending on results are as follows.

ErrorCode Code Player Info
SUCCESS Success The information of signed-in player
CONFLICT_PLAYER AuthV4ConflictPlayer The information of conflicted player
PLAYER_CHANGE AuthV4PlayerChange The information of the player who successfully changed its account
CANCELED AuthV4PlayerResolved The information of current player

See also

, PlayerInfo