55 #import <Foundation/Foundation.h> 63 @class HIVEAuthV4MaintenanceExtraButton;
64 @class HIVEPermissionViewData;
66 typedef NSString HIVEProviderTypeStr;
82 typedef NS_ENUM(NSUInteger, HIVEProviderType) {
83 kHIVEProviderTypeGUEST = 0,
84 kHIVEProviderTypeHIVE,
85 kHIVEProviderTypeFACEBOOK,
86 kHIVEProviderTypeGOOGLE,
88 kHIVEProviderTypeWEIBO,
90 kHIVEProviderTypeWECHAT,
91 kHIVEProviderTypeAPPLE,
92 kHIVEProviderTypeSIGNIN_APPLE,
93 kHIVEProviderTypeAUTO = 99
114 typedef NS_ENUM(NSInteger, HIVEAuthV4MaintenanceActionType) {
115 kHIVEAuthV4MaintenanceActionTypeOPEN_URL = 1,
116 kHIVEAuthV4MaintenanceActionTypeEXIT,
117 kHIVEAuthV4MaintenanceActionTypeDONE
127 typedef NS_ENUM(NSUInteger, HIVEAuthV4MaintenanceDialogType) {
129 kHIVEAuthV4MaintenanceDialogDefault = 0,
130 kHIVEAuthV4MaintenanceDialogBlacklist = 1,
552 - (NSString *)toJson;
554 - (NSString*)privacySafeDescription;
583 @property (nonatomic, copy) NSString *playerToken;
584 @property (nonatomic, copy) NSString *did;
585 @property (nonatomic, copy) NSDictionary<HIVEProviderTypeStr *, HIVEProviderInfo *> *providerInfoData;
587 - (NSString *)toJson;
588 - (NSString *)privacySafeDescription;
619 @property (nonatomic) HIVEProviderType providerType;
620 @property (nonatomic, copy) NSString *providerUserId;
632 + (NSString *)stringProviderType:(HIVEProviderType)providerType;
644 + (HIVEProviderType)providerTypeFromString:(NSString *)typeString;
646 - (NSString *)toJson;
683 @property (nonatomic, copy) NSString *title;
684 @property (nonatomic, copy) NSString *message;
685 @property (nonatomic, copy) NSString *button;
686 @property (nonatomic) HIVEAuthV4MaintenanceActionType action;
687 @property (nonatomic, copy) NSString *url;
688 @property (nonatomic, copy) NSString *startDate;
689 @property (nonatomic, copy) NSString *endDate;
690 @property (nonatomic) NSInteger remainingTime;
693 @property (nonatomic, copy) NSString *customerButton;
694 @property (nonatomic, copy) NSString *customerLink;
696 @property (nonatomic, copy) NSMutableArray *exButtons;
698 - (NSString *)toJson;
703 @interface HIVEAuthV4MaintenanceExtraButton : NSObject <NSCopying>
705 @property (nonatomic) HIVEAuthV4MaintenanceActionType action;
706 @property (nonatomic, copy) NSString *url;
707 @property (nonatomic, copy) NSString *button;
709 - (NSString *)toJson;
720 @interface HIVEAuthV4 : NSObject
722 + (HIVEAuthV4Helper*)helper;
773 + (void)setup:(HIVEAuthV4SetupHandler)handler;
822 + (void)signIn:(HIVEProviderType)providerType handler:(HIVEAuthV4SignInHandler)handler;
847 + (void)signOut:(HIVEAuthV4SignOutHandler)handler;
916 + (void)connect:(HIVEProviderType)providerType handler:(HIVEAuthV4ConnectHandler)handler;
954 + (void)disconnect:(HIVEProviderType)providerType handler:(HIVEAuthV4DisconnectHandler)handler;
990 + (void)selectConflict:(int64_t)selectedPlayerId handler:(HIVEAuthV4SignInHandler)handler;
1022 + (void)resolveConflict:(HIVEAuthV4ResolveConflictHandler)handler;
1058 + (BOOL)isAutoSignIn;
1085 + (HIVEPlayerInfo *)getPlayerInfo;
1109 + (void)getProfile:(NSArray<NSNumber *> *)playerIdList handler:(HIVEAuthV4GetProfileHandler)handler;
1137 + (void)getProviderFriendsList:(HIVEProviderType)providerType handler:(HIVEProviderFriendsCallback)handler;
1162 + (void)showSignIn:(HIVEAuthV4SignInHandler)handler;
1206 + (void)showConflictSelection:(NSDictionary<NSString *, NSObject *> *)currentPlayerData
1207 conflictPlayerData:(NSDictionary<NSString *, NSObject *> *)conflictPlayerData
1208 handler:(HIVEAuthV4SignInHandler)handler;
1234 + (void)showProfile:(int64_t)
playerId handler:(HIVEAuthV4ShowProfileHandler)handler;
1256 + (void)showCafe:(HIVEAuthV4ShowCafeHandler)handler;
1278 + (void)showInquiry:(HIVEAuthV4ShowInquiryHandler)handler;
1304 + (void)showTerms:(HIVEAuthV4ShowTermsHandler)handler;
1329 + (void)showAdultConfirm:(HIVEAuthV4AdultConfirmHandler)handler;
1366 + (void)checkProvider:(HIVEProviderType)providerType handler:(HIVEAuthV4CheckProviderHandler)handler;
1404 + (void)checkMaintenance:(BOOL)isShow handler:(HIVEAuthV4MaintenanceHandler)handler;
1438 + (void)checkBlacklist:(BOOL)isShow handler:(HIVEAuthV4MaintenanceHandler)handler;
1468 + (void)setProviderChangedListener:(HIVEAuthV4CheckProviderHandler)handler;
1486 + (void)showGameCenterLoginCancelDialog:(HIVEAuthV4DialogDismissHandler)handler;
1488 + (void)setFacebookPermission:(NSArray *) permission;
1508 + (bool)getAgeGateU13;
1524 + (void)requestPermissionViewData:(void(^)(HIVEResultAPI *result, HIVEPermissionViewData *data))handler __deprecated_msg("Use Configration.getPermissionViewData");
void(^ HIVEAuthV4CheckProviderHandler)(HIVEResultAPI *result, HIVEProviderInfo *providerInfo)
AuthV4 Provider status request result callback If the requested provider is not logged in...
Definition: HIVEAuthV4.h:477
Sign-in User Information it includes user's tocken and DID value along with ProfileInfo.
Definition: HIVEAuthV4.h:581
void(^ HIVEAuthV4GetProfileHandler)(HIVEResultAPI *result, NSArray< HIVEProfileInfo *> *profileInfoList)
AuthV4 Profile information request result callback The profile information of the playerIds which are...
Definition: HIVEAuthV4.h:317
void(^ HIVEAuthV4MaintenanceHandler)(HIVEResultAPI *result, NSArray< HIVEAuthV4MaintenanceInfo *> *maintenanceInfolist)
AuthV4 Sever maintenance check request result callback Check whether the server is in the server main...
Definition: HIVEAuthV4.h:506
void(^ HIVEAuthV4DisconnectHandler)(HIVEResultAPI *result)
AuthV4 Provider disconnect result callback It pass the disconnect status to the authentication server...
Definition: HIVEAuthV4.h:269
void(^ HIVEAuthV4SignInHandler)(HIVEResultAPI *result, HIVEPlayerInfo *playerInfo)
AuthV4 Sign-in result callback.
Definition: HIVEAuthV4.h:188
API 호출에 대한 결과를 담는 클래스
Definition: HIVEResultAPI.h:25
NSString * playerImageUrl
사용자 image url. PlayerName과 마찬가지로 처음 연결된 Provider의 정보로 채워지며, HIVE와 연동시 변경...
Definition: HIVEAuthV4.h:550
Server Maintenance and Update status display information title : Title message : Contents button : ...
Definition: HIVEAuthV4.h:681
void(^ HIVEAuthV4ShowCafeHandler)(HIVEResultAPI *result)
AuthV4 Cafe UI request result callback Invoked when the UI window is closed.
Definition: HIVEAuthV4.h:385
void(^ HIVEAuthV4AdultConfirmHandler)(HIVEResultAPI *result)
AuthV4 Adult authentication request result callback Invoked when the UI window is closed...
Definition: HIVEAuthV4.h:452
void(^ HIVEAuthV4ShowProfileHandler)(HIVEResultAPI *result)
AuthV4 Profile UI request result callback Invoked when the UI window is closed.
Definition: HIVEAuthV4.h:363
int64_t playerId
사용자 Player ID
Definition: HIVEAuthV4.h:548
void(^ HIVEAuthV4ResolveConflictHandler)(HIVEResultAPI *result)
Result callback of resolveConflict(HIVEAuthV4ResolveConflictHandler) call AuthV4.resolveConflict() us...
Definition: HIVEAuthV4.h:291
Provides advanced features of HIVE Authentication.
Definition: HIVEAuthV4Helper.h:275
void(^ HIVEProviderFriendsCallback)(HIVEResultAPI *result, HIVEProviderType providerType, NSDictionary< NSString *, NSNumber *> *providerUserIdList)
HIVE SDK Provider friend list request result callback.
Definition: HIVEAuthV4.h:340
void(^ HIVEAuthV4ShowTermsHandler)(HIVEResultAPI *result)
AuthV4 Terms of Service UI request result callback Invoked when the UI window is closed.
Definition: HIVEAuthV4.h:428
NSString * playerName
사용자 Player name. 처음 연결된 Provider의 정보로 채워지며, HIVE 와 연동시 변경이 가능하다...
Definition: HIVEAuthV4.h:549
Identity Provider (IdP) Information It contains the UserId of the associated Identity Provider...
Definition: HIVEAuthV4.h:617
void(^ HIVEAuthV4SignOutHandler)(HIVEResultAPI *result)
AuthV4 Sign out result callback.
Definition: HIVEAuthV4.h:208
typedef NS_ENUM(NSUInteger, HIVEProviderType)
Provider Types AUTO is for Automatic Login If the result of isAutoSignIn() call is true...
Definition: HIVEAuthV4.h:82
User Profile Information playerID : User's unique ID playerName : The nickname of the user to be sho...
Definition: HIVEAuthV4.h:546
void(^ HIVEAuthV4ConnectHandler)(HIVEResultAPI *result, HIVEPlayerInfo *conflictPlayer)
AuthV4 Provider connect result callback.
Definition: HIVEAuthV4.h:244
void(^ HIVEAuthV4DialogDismissHandler)(BOOL isDismiss)
AuthV4 Result callback after Game Center login pops up
Definition: HIVEAuthV4.h:521
void(^ HIVEAuthV4ShowInquiryHandler)(HIVEResultAPI *result)
AuthV4 1:1 Inquiry UI request result callback Invoked when the UI window is closed.
Definition: HIVEAuthV4.h:407
void(^ HIVEAuthV4SetupHandler)(HIVEResultAPI *result, BOOL isAutoSignIn, NSString *did, NSArray< NSNumber *> *providerTypeList)
AuthV4 initialization result callback.
Definition: HIVEAuthV4.h:158