HIVE SDK for C++

HIVE_AuthV4.h
Go to the documentation of this file.
1
45#ifndef __HIVE_AUTHV4_H__
46#define __HIVE_AUTHV4_H__
47
48#include "HIVE_ResultAPI.h"
49#include <memory>
50#include <map>
51#include "HIVE_PermissionView.h"
52
53NS_HIVE_BEGIN
54
69enum class ProviderType {
70 GUEST = 0
71 ,HIVE = 1
72 ,FACEBOOK = 2
73 ,GOOGLE = 3
74 ,QQ = 4
75 ,VK = 6
76 ,WECHAT = 7
77 ,APPLE = 8
78 ,SIGNIN_APPLE = 9
79 ,LINE = 10
80 ,WEVERSE = 12
81 ,GOOGLE_PLAY_GAMES = 14
82 ,HUAWEI = 15
83 ,STEAM = 18
84 ,X = 19
85 ,TELEGRAM = 20
86 ,CUSTOM = 98
87 ,AUTO = 99
88 // 미사용 영구 결번 처리 : 5, 11, 13
89};
90
109 NONE = -1
110 ,OPEN_URL = 1
111 ,EXIT
112 ,DONE
113};
114
115typedef long long PlayerID; //64 bit data type
116
117class PlayerInfo;
118class ProfileInfo;
119class ProviderInfo;
123class IConflictViewInfo;
124class ConflictSingleViewInfo;
125
126class HIVESDK_DLLEXPORT AuthV4 {
127
128public:
129
155 typedef std::function<void(ResultAPI const & result,bool isAutoSignIn,std::string did,std::vector<ProviderType> const & providerTypeList )> onSetup;
156
157
185 typedef std::function<void(ResultAPI const & result,PlayerInfo const & playerInfo)> onSignIn;
186
187
188
206 typedef std::function<void(ResultAPI const & result)> onSignOut;
207
208
242 typedef std::function<void(ResultAPI const & result,PlayerInfo const & conflictPlayer)> onConnect;
243
244
267 typedef std::function<void(ResultAPI const & result)> onDisconnect;
268
269
288 typedef std::function<void(ResultAPI const & result)> onShowTerms;
289
310 typedef std::function<void(ResultAPI const & result)> onAdultConfirm;
311
312
335 typedef std::function<void(ResultAPI const & result,ProviderInfo const & providerInfo)> onCheckProvider;
336
337
364 typedef std::function<void(ResultAPI const & result,std::vector<AuthV4MaintenanceInfo> const & maintenanceInfolist)> onMaintenance;
365
389 typedef std::function<void(ResultAPI const & result,std::vector<ProfileInfo> const & profileInfoList)> onGetProfile;
390
411 typedef std::function<void(ResultAPI const & result)> onShowProfile;
412
413
433 typedef std::function<void(ResultAPI const & result)> onShowInquiry;
434
454 typedef std::function<void(ResultAPI const & result)> onShowChatbotInquiry;
455
456
476 typedef std::function<void(ResultAPI const & result)> onShowMyInquiry;
477
498 typedef std::function<void(ResultAPI const & result,ProviderType providerType,std::map<std::string,PlayerID> providerUserIdList)> onGetProviderFriendsList;
499
519 typedef std::function<void(ResultAPI const & result)> onResolveConflict;
520
521 //4.7.0_ADDED
534 typedef std::function<void(bool isDismiss)> onAuthV4DialogDismiss;
535
536 typedef std::function<void(ResultAPI const & result,PermissionViewData const & data)> onAuthV4RequestPermissionViewData;
537
557 typedef std::function<void(ResultAPI const & result)> onShowDeviceManagement;
558
574 typedef std::function<void(ResultAPI const & result, std::string loginToken)> onGetHiveTalkPlusLoginToken;
575
591 typedef std::function<void(ResultAPI const & result, const char* accessToken)> onRefreshAccessToken;
592
610 typedef std::function<void(ResultAPI const& result, std::vector<PlayerID> playerIdList)> onPlayerIdList;
611
627 typedef std::function<void(ResultAPI const& result)> onStorePlayerId;
628
644 typedef std::function<void(ResultAPI const& result)> onDeletePlayerId;
645
695 static void setup(onSetup setupListener);
696
743 static void signIn(ProviderType providerType, onSignIn signInListener);
744
763 static void signInWithAuthKey(std::string authKey, onSignIn signInListener);
764
765
788 static void signOut(onSignOut signOutListener);
789
790
812 static void playerDelete(onSignOut playerDeleteListener);
813
814
881 static void connect(ProviderType providerType, onConnect connectListener);
882
883
919 static void disconnect(ProviderType providerType, onDisconnect disconnectListener);
920
971 static void connectWithAuthKey(std::string authKey, onConnect connectListener);
972
973
1009 static void disconnectWithName(std::string providerName, onDisconnect disconnectListener);
1010
1044 static void selectConflict(PlayerID selectedPlayerId, onSignIn signInListener);
1045
1046
1082 static void checkProvider(ProviderType providerType, onCheckProvider checkProviderListener);
1083
1084
1120 static void checkMaintenance(bool isShow, onMaintenance maintenanceListener);
1121
1122
1154 static void checkBlacklist(bool isShow, onMaintenance maintenanceListener);
1155
1156
1184 static void setProviderChangedListener(onCheckProvider checkProviderLisener);
1185
1186
1208 static void showSignIn(onSignIn signInListener);
1209
1210
1244 static void showConflictSelection(IConflictViewInfo const& viewInfo,onSignIn signInListener);
1245
1265 static void showInquiry(onShowInquiry showInquiryListener);
1266
1283 static void showChatbotInquiry(std::string additionalInfo, onShowChatbotInquiry showChatbotInquiryListener);
1284
1285
1303 static void showMyInquiry(onShowMyInquiry showInquiryListener);
1304
1328 static void showTerms(onShowTerms showTermsListener);
1329
1351 static void showAdultConfirm(onAdultConfirm adultConfirmListener);
1352
1374 static void getProfile(std::vector<PlayerID> playerIdList, onGetProfile getProfileListener);
1375
1399 static void showProfile(PlayerID playerId, onShowProfile showProfileListener);
1400
1412 static void resetAgreement();
1413
1414
1448 static bool isAutoSignIn();
1449
1450
1476
1501 static void getProviderFriendsList(ProviderType providerType, onGetProviderFriendsList getProviderFriendsListListener);
1502
1532 static void resolveConflict(onResolveConflict resolveConflictListener);
1533
1534 //4.7.0_ADDED
1535 static void showGameCenterLoginCancelDialog(onAuthV4DialogDismiss listener);
1536
1555 static bool getAgeGateU13();
1556
1571 static void requestPermissionViewData(onAuthV4RequestPermissionViewData listener);
1572
1590 static void showDeviceManagement(onShowDeviceManagement showDeviceManagementListener);
1591
1607 static void getHiveTalkPlusLoginToken(onGetHiveTalkPlusLoginToken getHiveTalkPlusLoginTokenListener);
1608
1624 static void refreshAccessToken(onRefreshAccessToken refreshAccessTokenListener);
1625
1645 static void signInWithStoredPlayerId(PlayerID playerId, bool useAutoSignIn, onSignIn signInListener);
1646
1662 static void getStoredPlayerIdList(onPlayerIdList playerIdListListener);
1663
1679 static void storeCurrentPlayerId(onStorePlayerId storeListener);
1680
1698 static void deleteStoredPlayerId(PlayerID playerId, onDeletePlayerId deleteListener);
1699
1721
1722 // Native 영역에서 호출된 요청을 처리하기 위한 플러그인 내부 코드
1723 static void executeEngine(picojson::value jsonParam);
1724
1741 static void terminateProcess();
1742
1777 class HIVESDK_DLLEXPORT Helper {
1778 public:
1779 // MARK: typedef
1964 typedef std::function<void(ResultAPI const & result,std::shared_ptr<PlayerInfo> playerInfo)> onAuthV4Helper;
1965 // MARK: Main interfaces
2063 static void syncAccount(ProviderType providerType, onAuthV4Helper listener);
2064
2178 static void signIn(onAuthV4Helper listener);
2248 static void signOut(onAuthV4Helper listener);
2249
2319 static void playerDelete(onAuthV4Helper listener);
2320
2421 static void connect(ProviderType providerType, onAuthV4Helper listener);
2502 static void disconnect(ProviderType providerType, onAuthV4Helper listener);
2610 static void showAchievements(onAuthV4Helper listener);
2717 static void showLeaderboard(onAuthV4Helper listener);
2718
2799 static void achievementsReveal(const std::string achievementId, onAuthV4Helper listener);
2800
2881 static void achievementsUnlock(const std::string achievementId, onAuthV4Helper listener);
2882
2967 static void achievementsIncrement(const std::string achievementId, const int value, onAuthV4Helper listener);
2968
3051 static void leaderboardsSubmitScore(const std::string leaderboardId, const long long score, onAuthV4Helper listener);
3052
3113 static void showConflict(onAuthV4Helper listener);
3180 static void showConflict(ConflictSingleViewInfo const & viewInfo,onAuthV4Helper listener);
3223 static void switchAccount(onAuthV4Helper listener);
3266 static void resolveConflict(onAuthV4Helper listener);
3279 static std::vector<ProviderType> getIDPList();
3280 // MARK: Support interfaces
3299 static void showGameCenterLoginCancelDialog(onAuthV4DialogDismiss listener);
3300
3301 static void executeEngine(picojson::value jsonParam);
3302 };
3303};
3304
3305class HIVESDK_DLLEXPORT IConflictViewInfo {
3306public:
3307 virtual ~IConflictViewInfo(){}
3308 virtual std::string toJsonConflict() const = 0;
3309 virtual std::string toJsonCurrent() const = 0;
3310};
3311
3312class HIVESDK_DLLEXPORT ConflictSingleViewInfo : public IConflictViewInfo{
3313public:
3318 ConflictSingleViewInfo(hive::PlayerID playerId);
3319 virtual ~ConflictSingleViewInfo();
3320
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);
3324
3325 std::string toJsonConflict() const override;
3326 std::string toJsonCurrent() const override;
3327private:
3328 std::string jsonData;
3329};
3330
3334class HIVESDK_DLLEXPORT ConflictViewInfo : public IConflictViewInfo{
3335public:
3341 ConflictViewInfo(hive::PlayerID currentPlayerId, hive::PlayerID conflictPlayerId);
3342 virtual ~ConflictViewInfo();
3343
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);
3347
3348 std::string toJsonConflict() const override;
3349 std::string toJsonCurrent() const override;
3350private:
3351 std::string jsonConflict;
3352 std::string jsonCurrent;
3353};
3354
3375class HIVESDK_DLLEXPORT ProfileInfo {
3376public:
3377 ProfileInfo();
3378 ProfileInfo(picojson::value object);
3379#if WITH_EDITOR
3380 virtual ~ProfileInfo();
3381#else
3382 virtual ~ProfileInfo() = default;
3383#endif
3384 hive::PlayerID playerId;
3385 std::string playerName;
3386 std::string playerImageUrl;
3387};
3388
3411class HIVESDK_DLLEXPORT PlayerInfo : public ProfileInfo{
3412public:
3413 PlayerInfo();
3414 PlayerInfo(picojson::value object);
3415#if WITH_EDITOR
3416 virtual ~PlayerInfo();
3417#else
3418 ~PlayerInfo() override = default;
3419#endif
3420 std::string playerToken;
3421 std::string accessToken;
3422 std::string did;
3423
3424 std::map<ProviderType, hive::ProviderInfo> providerInfoData; // 일반 로그인 provider 정보
3425 std::map<std::string, hive::ProviderInfo> customProviderInfoData; // 커스텀 로그인 provider 정보
3426};
3427
3448class HIVESDK_DLLEXPORT ParentalConsentInfo final {
3449public:
3450 ParentalConsentInfo() = default;
3451 ParentalConsentInfo(picojson::value object);
3452
3453 std::string dateOfBirth;
3454 std::string guardianEmail;
3455};
3456
3457// MARK: -
3458// MARK: HIVEProviderInfo
3459
3483class HIVESDK_DLLEXPORT ProviderInfo {
3484public:
3485 ProviderInfo();
3486 ProviderInfo(picojson::value object);
3487 hive::ProviderType providerType;
3488 std::string providerName;
3489 std::string providerUserId;
3490 std::string providerEmail;
3491
3498 static std::string stringProviderType(hive::ProviderType providerType);
3499
3500
3507 static hive::ProviderType providerTypeFromString(const std::string typeString);
3508};
3509
3510// MARK: -
3511// MARK: MaintenanceExtraButton
3512
3530class HIVESDK_DLLEXPORT AuthV4MaintenanceExtraButton {
3531public:
3532 AuthV4MaintenanceExtraButton(picojson::value object);
3533
3534 std::string button;
3535 hive::AuthV4MaintenanceActionType action;
3536 std::string url;
3537};
3538
3539
3540
3541// MARK: -
3542// MARK: HIVEAuthV4MaintenanceInfo
3543
3575class HIVESDK_DLLEXPORT AuthV4MaintenanceInfo{
3576public:
3577 AuthV4MaintenanceInfo(picojson::value object);
3578 std::string title;
3579 std::string message;
3580 std::string button;
3581 hive::AuthV4MaintenanceActionType action;
3582 std::string url;
3583 std::string startDate;
3584 std::string endDate;
3586 std::string customerButton;
3587 std::string customerLink;
3588 std::vector<AuthV4MaintenanceExtraButton> exButtons;
3589};
3590
3591NS_HIVE_END // namespace hive
3592
3593#endif //__HIVE_AUTHV4_H__
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
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
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy