45#ifndef __HIVE_AUTHV4_H__
46#define __HIVE_AUTHV4_H__
52#include "HIVE_PermissionView.h"
85 ,GOOGLE_PLAY_GAMES = 14
114typedef long long PlayerID;
120class IConflictViewInfo;
121class ConflictSingleViewInfo;
123class HIVESDK_DLLEXPORT AuthV4 {
152 typedef std::function<void(
ResultAPI const & result,
bool isAutoSignIn,std::string did,std::vector<ProviderType>
const & providerTypeList )>
onSetup;
361 typedef std::function<void(
ResultAPI const & result,std::vector<AuthV4MaintenanceInfo>
const & maintenanceInfolist)>
onMaintenance;
386 typedef std::function<void(
ResultAPI const & result,std::vector<ProfileInfo>
const & profileInfoList)>
onGetProfile;
531 typedef std::function<void(
bool isDismiss)> onAuthV4DialogDismiss;
533 typedef std::function<void(
ResultAPI const & result,PermissionViewData
const & data)> onAuthV4RequestPermissionViewData;
1464 static void showGameCenterLoginCancelDialog(onAuthV4DialogDismiss listener);
1484 static bool getAgeGateU13();
1539 static void executeEngine(picojson::value jsonParam);
1575 class HIVESDK_DLLEXPORT Helper {
3099 static void executeEngine(picojson::value jsonParam);
3103class HIVESDK_DLLEXPORT IConflictViewInfo {
3105 virtual ~IConflictViewInfo(){}
3106 virtual std::string toJsonConflict()
const = 0;
3107 virtual std::string toJsonCurrent()
const = 0;
3110class HIVESDK_DLLEXPORT ConflictSingleViewInfo :
public IConflictViewInfo{
3117 virtual ~ConflictSingleViewInfo();
3119 void SetValue(
const std::string key,
const long long playerData);
3120 void SetValue(
const std::string key,
const double playerData);
3121 void SetValue(
const std::string key,
const std::string playerData);
3122 void SetCharValue(
const char* key,
const char* playerData);
3124 std::string toJsonConflict()
const override;
3125 std::string toJsonCurrent()
const override;
3127 std::string jsonData;
3143 void SetValue(
const std::string key,
const long long currentPlayerData,
const long long conflictPlayerData);
3144 void SetValue(
const std::string key,
const double currentPlayerData,
const double conflictPlayerData);
3145 void SetValue(
const std::string key,
const std::string currentPlayerData,
const std::string conflictPlayerData);
3146 void SetCharValue(
const char* key,
const char* currentPlayerData,
const char* conflictPlayerData);
3148 std::string toJsonConflict()
const override;
3149 std::string toJsonCurrent()
const override;
3151 std::string jsonConflict;
3152 std::string jsonCurrent;
3185 std::string playerName;
3186 std::string playerImageUrl;
3223 std::map<ProviderType, hive::ProviderInfo> providerInfoData;
3224 std::map<std::string, hive::ProviderInfo> customProviderInfoData;
3259 std::string providerName;
3330 HIVESDK_DLLEXPORT
const char* AuthV4GetPlayerInfo();
3331 HIVESDK_DLLEXPORT
void AuthV4ShowChatbotInquiry(
const char* additionalInfo, hive::AuthV4::onShowChatbotInquiry showChatbotInquiryListener);
3333 HIVESDK_DLLEXPORT
void AuthV4SignInWithAuthKey(
const char* authKey, hive::AuthV4::onSignIn signInListener);
3336 HIVESDK_DLLEXPORT
void AuthV4ConnectWithAuthKey(
const char* authKey, hive::AuthV4::onConnect connectListener);
3337 HIVESDK_DLLEXPORT
void AuthV4DisconnectWithName(
const char* providerName, hive::AuthV4::onDisconnect disconnectListener);
3341 HIVESDK_DLLEXPORT
const char* AuthV4HelperGetIDPList();
Server Maintenance and Update status display information title : Title message : Contents button : ...
Definition: HIVE_AuthV4.h:3311
HIVE 인증 충돌시 view에 표시할 UI data를 구성하는 정보.
Definition: HIVE_AuthV4.h:3133
Sign-in User Information it includes user's tocken and DID value along with ProfileInfo.
Definition: HIVE_AuthV4.h:3211
User Profile Information playerID : User's unique ID playerName : The nickname of the user to be sho...
Definition: HIVE_AuthV4.h:3175
Identity Provider (IdP) Information It contains the UserId of the associated Identity Provider.
Definition: HIVE_AuthV4.h:3254
Definition: HIVE_ResultAPI.h:63
@ OPEN_URL
외부 부라우저로 전달된 url 을 실행
@ AUTO
게스트 로그인이나 HIVE 로그인되어 있는 상태 (단말에 세션키가 남아 있는 상태)
std::string providerEmail
Provider의 사용자 email (optional)
Definition: HIVE_AuthV4.h:3261
static void showLeaderboard(onAuthV4Helper listener)
Queries leaderboard
static void showConflict(ConflictSingleViewInfo const &viewInfo, onAuthV4Helper listener)
Displays conflict status, and HIVE UI which is available to select an account as well as shows game i...
std::string endDate
end time YYYY-mm-dd HH:ii
Definition: HIVE_AuthV4.h:3320
std::string playerToken
사용자 Player 세션 토큰.
Definition: HIVE_AuthV4.h:3220
static hive::ProviderType providerTypeFromString(const std::string typeString)
Provider string값으로 type을 얻어온다.
static void signOut(onAuthV4Helper listener)
Player sign-out
std::string providerUserId
< Provider의 이름.
Definition: HIVE_AuthV4.h:3260
static void showAchievements(onAuthV4Helper listener)
Queries Achievements
static void showConflict(onAuthV4Helper listener)
Displays conflict status, and HIVE UI avilable to select an account.
static void achievementsReveal(const std::string achievementId, onAuthV4Helper listener)
Reveal hidden achievement.
std::string startDate
start time YYYY-mm-dd HH:ii
Definition: HIVE_AuthV4.h:3319
std::string button
Text on the button ex) OK.
Definition: HIVE_AuthV4.h:3316
static void signIn(onAuthV4Helper listener)
Player sign-in
static void connect(ProviderType providerType, onAuthV4Helper listener)
Provider Connection
std::string url
URL to be browsed when action is OPEN_URL.
Definition: HIVE_AuthV4.h:3318
static void syncAccount(ProviderType providerType, onAuthV4Helper listener)
Helps to inform whether accounts conflict or not when executing the provided as well as other APIs.
static void leaderboardsSubmitScore(const std::string leaderboardId, const long long score, onAuthV4Helper listener)
It update the leaderboard score.
std::string title
Title.
Definition: HIVE_AuthV4.h:3314
static void disconnect(ProviderType providerType, onAuthV4Helper listener)
Provider disconnetion
static void switchAccount(onAuthV4Helper listener)
If accounts conflict, sign out the current player and try to sign in with the account signed in on t...
hive::PlayerID playerId
사용자 Player ID
Definition: HIVE_AuthV4.h:3184
ConflictSingleViewInfo(hive::PlayerID playerId)
생성자
static std::vector< ProviderType > getIDPList()
Receives the Provider lists sent by SDK.
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 ...
int remainingTime
When action is EXIT, the time in seconds remaining until the maintenance completes....
Definition: HIVE_AuthV4.h:3321
std::string message
Contents.
Definition: HIVE_AuthV4.h:3315
static void achievementsIncrement(const std::string achievementId, const int value, onAuthV4Helper listener)
Increases achievement figures.
ConflictViewInfo(hive::PlayerID currentPlayerId, hive::PlayerID conflictPlayerId)
생성자
static void playerDelete(onAuthV4Helper listener)
사용자 삭제
static void resolveConflict(onAuthV4Helper listener)
In case it is not changed the currently signed-in account after accounts conflict.
hive::ProviderType providerType
Provider의 type.
Definition: HIVE_AuthV4.h:3258
static void achievementsUnlock(const std::string achievementId, onAuthV4Helper listener)
Unlock achievement.
hive::AuthV4MaintenanceActionType action
Actions to be taken when the button is pressed.
Definition: HIVE_AuthV4.h:3317
std::function< void(ResultAPI const &result, std::shared_ptr< PlayerInfo > playerInfo)> onAuthV4Helper
AuthV4Helper API request result callback.
Definition: HIVE_AuthV4.h:1762
std::string did
사용자 device identifier.
Definition: HIVE_AuthV4.h:3221
static std::string stringProviderType(hive::ProviderType providerType)
Provider type으로 string 값을 얻어온다.
std::function< void(ResultAPI const &result, std::string loginToken)> onGetHiveTalkPlusLoginToken
getHiveTalkPlusLoginToken(AuthV4GetHiveTalkPlusLoginTokenListener) call AuthV4.getHiveTalkPlusLoginTo...
Definition: HIVE_AuthV4.h:571
static void signIn(ProviderType providerType, onSignIn signInListener)
Requests signIn according to the given providerType.
static void reset()
It initialize all data used by the SDK, including authentication information.
static void signInWithAuthKey(std::string authKey, onSignIn signInListener)
Requests signIn with authKey gained from customized provider login implementation.
static void showChatbotInquiry(std::string additionalInfo, onShowChatbotInquiry showChatbotInquiryListener)
Show HIVE Chatbot 1:1 inquiry
std::function< void(ResultAPI const &result, ProviderInfo const &providerInfo)> onCheckProvider
AuthV4 Provider status request result callback If the requested provider is not logged in,...
Definition: HIVE_AuthV4.h:332
static void setup(onSetup setupListener)
AuthV4 Perform initialization.
ProviderType
Provider Types AUTO is for Automatic Login If the result of isAutoSignIn() call is true,...
Definition: HIVE_AuthV4.h:70
static void checkBlacklist(bool isShow, onMaintenance maintenanceListener)
it check the restriction status of the current user.
static void checkProvider(ProviderType providerType, onCheckProvider checkProviderListener)
It check the status of the requested Provider.
static void showSignIn(onSignIn signInListener)
It shows the UI with a list of providers that can sign-in.
std::function< void(ResultAPI const &result)> onShowProfile
AuthV4 Profile UI request result callback Invoked when the UI window is closed.
Definition: HIVE_AuthV4.h:408
static void requestPermissionViewData(onAuthV4RequestPermissionViewData listener)
권한고지 팝업을 구성하기 위한 데이터를 얻습니다.
static void playerDelete(onSignOut playerDeleteListener)
Delete the account and remove the local session.
static void showMyInquiry(onShowMyInquiry showInquiryListener)
It shows the 1: 1 query UI.
static PlayerInfo getPlayerInfo()
It returns information about the currently signed-in user.
std::function< void(ResultAPI const &result)> onShowMyInquiry
AuthV4 My Inquiry UI request result callback Invoked when the UI window is closed.
Definition: HIVE_AuthV4.h:473
static void getProviderFriendsList(ProviderType providerType, onGetProviderFriendsList getProviderFriendsListListener)
It returns the playerId list information of the friends of the connected user corresponding to the in...
static void showAdultConfirm(onAdultConfirm adultConfirmListener)
It request adult authentication.
static void getProfile(std::vector< PlayerID > playerIdList, onGetProfile getProfileListener)
it returns the profile information of the requested playerIds.
static void selectConflict(PlayerID selectedPlayerId, onSignIn signInListener)
When an account conflict (CONFLICT_PLAYER) occurs due to connect, it notify the selected user to the ...
std::function< void(ResultAPI const &result, ProviderType providerType, std::map< std::string, PlayerID > providerUserIdList)> onGetProviderFriendsList
HIVE SDK Provider friend list request result callback.
Definition: HIVE_AuthV4.h:495
std::function< void(ResultAPI const &result)> onSignOut
AuthV4 Sign out result callback.
Definition: HIVE_AuthV4.h:203
std::function< void(ResultAPI const &result)> onResolveConflict
Result callback of resolveConflict(HIVEAuthV4ResolveConflictHandler) call AuthV4.resolveConflict() us...
Definition: HIVE_AuthV4.h:516
static void disconnectWithName(std::string providerName, onDisconnect disconnectListener)
Releases the currently signed-in user from the requested custom provider.
static void getHiveTalkPlusLoginToken(onGetHiveTalkPlusLoginToken getHiveTalkPlusLoginTokenListener)
getHiveTalkPlusLoginToken(AuthV4GetHiveTalkPlusLoginTokenListener) call AuthV4.getHiveTalkPlusLoginTo...
std::function< void(ResultAPI const &result, std::vector< AuthV4MaintenanceInfo > const &maintenanceInfolist)> onMaintenance
AuthV4 Sever maintenance check request result callback Check whether the server is in the server main...
Definition: HIVE_AuthV4.h:361
static void connect(ProviderType providerType, onConnect connectListener)
It connects to the currently requested provider for the currently signed-in user.
std::function< void(ResultAPI const &result, std::vector< ProfileInfo > const &profileInfoList)> onGetProfile
AuthV4 Profile information request result callback The profile information of the playerIds which are...
Definition: HIVE_AuthV4.h:386
static void disconnect(ProviderType providerType, onDisconnect disconnectListener)
Releases the currently signed-in user from the requested provider.
static void showTerms(onShowTerms showTermsListener)
It shows HIVE Terms and Conditions.
static void showProfile(PlayerID playerId, onShowProfile showProfileListener)
It display the profile UI of the requested playerId.
static void checkMaintenance(bool isShow, onMaintenance maintenanceListener)
It display maintenance status and return its data.
static void showDeviceManagement(onShowDeviceManagement showDeviceManagementListener)
It shows the device management UI.
static void connectWithAuthKey(std::string authKey, onConnect connectListener)
Requests connect with authKey gained from customized provider login implementation.
std::function< void(ResultAPI const &result)> onShowInquiry
AuthV4 1:1 Inquiry UI request result callback Invoked when the UI window is closed.
Definition: HIVE_AuthV4.h:430
std::function< void(ResultAPI const &result, PlayerInfo const &conflictPlayer)> onConnect
AuthV4 Provider connect result callback.
Definition: HIVE_AuthV4.h:239
std::function< void(ResultAPI const &result)> onShowTerms
AuthV4 Terms of Service UI request result callback Invoked when the UI window is closed.
Definition: HIVE_AuthV4.h:285
static void showConflictSelection(IConflictViewInfo const &viewInfo, onSignIn signInListener)
It shows UI to select user in conflict state.
std::function< void(ResultAPI const &result, bool isAutoSignIn, std::string did, std::vector< ProviderType > const &providerTypeList)> onSetup
AuthV4 initialization result callback.
Definition: HIVE_AuthV4.h:152
std::function< void(ResultAPI const &result, PlayerInfo const &playerInfo)> onSignIn
AuthV4 Sign-in result callback.
Definition: HIVE_AuthV4.h:182
std::function< void(ResultAPI const &result)> onAdultConfirm
AuthV4 Adult authentication request result callback Invoked when the UI window is closed.
Definition: HIVE_AuthV4.h:307
AuthV4MaintenanceActionType
Actions to be taken when a button is pressed on the maintenance popup.
Definition: HIVE_AuthV4.h:108
std::function< void(ResultAPI const &result)> onDisconnect
AuthV4 Provider disconnect result callback It pass the disconnect status to the authentication server...
Definition: HIVE_AuthV4.h:264
std::function< void(ResultAPI const &result)> onShowDeviceManagement
AuthV4 DeviceManagement UI request result callback Invoked when the UI window is closed.
Definition: HIVE_AuthV4.h:554
static void setProviderChangedListener(onCheckProvider checkProviderLisener)
It set a handler to be notified whether the information of the linked Provider has changed.
static void resolveConflict(onResolveConflict resolveConflictListener)
It resolve the account conflicts(CONFLICT_PLAYER) caused by connect () call.
static void showInquiry(onShowInquiry showInquiryListener)
It shows the 1: 1 query UI.
static void signOut(onSignOut signOutListener)
it remove the local session.
static bool isAutoSignIn()
It returns whether signIn (AUTO) is enabled.
std::function< void(ResultAPI const &result)> onShowChatbotInquiry
AuthV4 Chatbot 1:1 Inquiry UI request result callback Invoked when the UI window is closed.
Definition: HIVE_AuthV4.h:451