45#ifndef __HIVE_AUTHV4_H__
46#define __HIVE_AUTHV4_H__
51#include "HIVE_PermissionView.h"
81 ,GOOGLE_PLAY_GAMES = 14
115typedef long long PlayerID;
123class IConflictViewInfo;
124class ConflictSingleViewInfo;
126class HIVESDK_DLLEXPORT AuthV4 {
155 typedef std::function<void(
ResultAPI const & result,
bool isAutoSignIn,std::string did,std::vector<ProviderType>
const & providerTypeList )>
onSetup;
364 typedef std::function<void(
ResultAPI const & result,std::vector<AuthV4MaintenanceInfo>
const & maintenanceInfolist)>
onMaintenance;
389 typedef std::function<void(
ResultAPI const & result,std::vector<ProfileInfo>
const & profileInfoList)>
onGetProfile;
534 typedef std::function<void(
bool isDismiss)> onAuthV4DialogDismiss;
536 typedef std::function<void(
ResultAPI const & result,PermissionViewData
const & data)> onAuthV4RequestPermissionViewData;
1535 static void showGameCenterLoginCancelDialog(onAuthV4DialogDismiss listener);
1723 static void executeEngine(picojson::value jsonParam);
1777 class HIVESDK_DLLEXPORT Helper {
3301 static void executeEngine(picojson::value jsonParam);
3305class HIVESDK_DLLEXPORT IConflictViewInfo {
3307 virtual ~IConflictViewInfo(){}
3308 virtual std::string toJsonConflict()
const = 0;
3309 virtual std::string toJsonCurrent()
const = 0;
3312class HIVESDK_DLLEXPORT ConflictSingleViewInfo :
public IConflictViewInfo{
3319 virtual ~ConflictSingleViewInfo();
3321 void SetValue(
const std::string key,
const long long playerData);
3322 void SetValue(
const std::string key,
const double playerData);
3323 void SetValue(
const std::string key,
const std::string playerData);
3325 std::string toJsonConflict()
const override;
3326 std::string toJsonCurrent()
const override;
3328 std::string jsonData;
3344 void SetValue(
const std::string key,
const long long currentPlayerData,
const long long conflictPlayerData);
3345 void SetValue(
const std::string key,
const double currentPlayerData,
const double conflictPlayerData);
3346 void SetValue(
const std::string key,
const std::string currentPlayerData,
const std::string conflictPlayerData);
3348 std::string toJsonConflict()
const override;
3349 std::string toJsonCurrent()
const override;
3351 std::string jsonConflict;
3352 std::string jsonCurrent;
3385 std::string playerName;
3386 std::string playerImageUrl;
3424 std::map<ProviderType, hive::ProviderInfo> providerInfoData;
3425 std::map<std::string, hive::ProviderInfo> customProviderInfoData;
3488 std::string providerName;
3586 std::string customerButton;
Additional Maintenance Button Information button : Text on the button ex) Extra Button action : Acti...
Definition: HIVE_AuthV4.h:3530
Server Maintenance and Update status display information title : Title message : Contents button : ...
Definition: HIVE_AuthV4.h:3575
HIVE 인증 충돌시 view에 표시할 UI data를 구성하는 정보.
Definition: HIVE_AuthV4.h:3334
Parental Consent Information It includes the user's date of birth and the guardian's email address.
Definition: HIVE_AuthV4.h:3448
Sign-in User Information it includes user's token and DID value along with ProfileInfo.
Definition: HIVE_AuthV4.h:3411
User Profile Information playerID : User's unique ID playerName : The nickname of the user to be sho...
Definition: HIVE_AuthV4.h:3375
Identity Provider (IdP) Information It contains the UserId of the associated Identity Provider.
Definition: HIVE_AuthV4.h:3483
Definition: HIVE_ResultAPI.h:64
std::string providerEmail
Provider의 사용자 email (optional)
Definition: HIVE_AuthV4.h:3490
std::string accessToken
사용자 Hive 세션 토큰.
Definition: HIVE_AuthV4.h:3421
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 customerLink
customer Title
Definition: HIVE_AuthV4.h:3587
std::string endDate
end time YYYY-mm-dd HH:ii
Definition: HIVE_AuthV4.h:3584
std::string playerToken
사용자 Player 세션 토큰.
Definition: HIVE_AuthV4.h:3420
hive::AuthV4MaintenanceActionType action
Actions to be taken when the button is pressed.
Definition: HIVE_AuthV4.h:3535
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:3489
std::string dateOfBirth
유저의 생년월일
Definition: HIVE_AuthV4.h:3453
static void showAchievements(onAuthV4Helper listener)
Queries Achievements
std::string guardianEmail
보호자 이메일 주소
Definition: HIVE_AuthV4.h:3454
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:3583
std::string button
Text on the button ex) OK.
Definition: HIVE_AuthV4.h:3580
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:3582
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:3578
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:3384
std::string url
URL to be browsed when action is OPEN_URL.
Definition: HIVE_AuthV4.h:3536
ConflictSingleViewInfo(hive::PlayerID playerId)
생성자
static std::vector< ProviderType > getIDPList()
Receives the Provider lists sent by SDK.
std::vector< AuthV4MaintenanceExtraButton > exButtons
customer Link
Definition: HIVE_AuthV4.h:3588
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:3585
std::string message
Contents.
Definition: HIVE_AuthV4.h:3579
static void achievementsIncrement(const std::string achievementId, const int value, onAuthV4Helper listener)
Increases achievement figures.
std::string button
Text on the button.
Definition: HIVE_AuthV4.h:3534
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:3487
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:3581
std::function< void(ResultAPI const &result, std::shared_ptr< PlayerInfo > playerInfo)> onAuthV4Helper
AuthV4Helper API request result callback.
Definition: HIVE_AuthV4.h:1964
std::string did
사용자 device identifier.
Definition: HIVE_AuthV4.h:3422
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:574
static void signIn(ProviderType providerType, onSignIn signInListener)
Requests signIn according to the given providerType.
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
static void refreshAccessToken(onRefreshAccessToken refreshAccessTokenListener)
refreshAccessToken(AuthV4RefreshAccessTokenListener) call AuthV4.refreshAccessToken() use it.
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:335
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:69
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:411
std::function< void(ResultAPI const &result)> onDeletePlayerId
Callback type definition for session information removal Defines the callback function type for handl...
Definition: HIVE_AuthV4.h:644
std::function< void(ResultAPI const &result)> onStorePlayerId
Callback type definition for saving the current logged-in session Defines the callback function type ...
Definition: HIVE_AuthV4.h:627
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:476
static void getStoredPlayerIdList(onPlayerIdList playerIdListListener)
Returns the list of saved player IDs.
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 storeCurrentPlayerId(onStorePlayerId storeListener)
Saves the current logged-in session.
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:498
std::function< void(ResultAPI const &result)> onSignOut
AuthV4 Sign out result callback.
Definition: HIVE_AuthV4.h:206
std::function< void(ResultAPI const &result, std::vector< PlayerID > playerIdList)> onPlayerIdList
Callback type definition for player ID retrieval Defines the callback function type for handling play...
Definition: HIVE_AuthV4.h:610
std::function< void(ResultAPI const &result)> onResolveConflict
Result callback of resolveConflict(HIVEAuthV4ResolveConflictHandler) call AuthV4.resolveConflict() us...
Definition: HIVE_AuthV4.h:519
static void disconnectWithName(std::string providerName, onDisconnect disconnectListener)
Releases the currently signed-in user from the requested custom provider.
static void terminateProcess()
Send app termination event to third-party plugin.
static ParentalConsentInfo getParentalConsentInfo()
Returns the parent consent information.
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:364
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:389
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 resetAgreement()
Initialize data related to agreement to terms.
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:433
std::function< void(ResultAPI const &result, PlayerInfo const &conflictPlayer)> onConnect
AuthV4 Provider connect result callback.
Definition: HIVE_AuthV4.h:242
static bool getAgeGateU13()
Returns the value whether COPPA limits users under 13 or not.
static void signInWithStoredPlayerId(PlayerID playerId, bool useAutoSignIn, onSignIn signInListener)
Requests login using PlayerID.
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:288
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:155
std::function< void(ResultAPI const &result, PlayerInfo const &playerInfo)> onSignIn
AuthV4 Sign-in result callback.
Definition: HIVE_AuthV4.h:185
static void deleteStoredPlayerId(PlayerID playerId, onDeletePlayerId deleteListener)
Deletes the saved session information.
std::function< void(ResultAPI const &result)> onAdultConfirm
AuthV4 Adult authentication request result callback Invoked when the UI window is closed.
Definition: HIVE_AuthV4.h:310
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:267
std::function< void(ResultAPI const &result)> onShowDeviceManagement
AuthV4 DeviceManagement UI request result callback Invoked when the UI window is closed.
Definition: HIVE_AuthV4.h:557
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, const char *accessToken)> onRefreshAccessToken
refreshAccessToken(AuthV4RefreshAccessTokenListener) call AuthV4.refreshAccessToken() use it.
Definition: HIVE_AuthV4.h:591
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:454