Blame view
GameLoginSDK.framework/Headers/GPGameLoginSDK.h
1.29 KB
c80ffd587
![]() |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
// // GPGameLoginSDK.h // GumpLoginSDK // // Created by yanglele on 2018/10/22. // Copyright © 2018年 alexYang. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> typedef enum:NSInteger{ GUESTTYPE = 1, SYSTEMTYPE, GUMPTYPE, }ACCOUNTENTERTYPE; typedef void(^GPGameLoginSuccessBlock)(NSNumber *userId, ACCOUNTENTERTYPE type); typedef void(^GPGameLoginFailureBlock)(void); static NSString *version = @"1.0.12"; @interface GPGameLoginSDK : NSObject @property(nonatomic, copy) GPGameLoginSuccessBlock succBlock; @property(nonatomic, copy) GPGameLoginFailureBlock failBlock; @property(nonatomic, copy) NSString *userID; @property(nonatomic, strong) UIViewController *GPViewController; +(instancetype)instance; -(NSString *)version; //游客登录和系统账号登录 -(void)GPGameLoginWithViewController:(UIViewController *)VC appID:(NSString *)appID channelId:(NSString *)channelId; //账号联动,只有在切换成功的时候才会有回调 -(void)GPGameAccountLinkViewController:(UIViewController *)vc InfoDic:(NSDictionary *)InfoDic callBack:(void (^)(NSNumber *userId, ACCOUNTENTERTYPE type))callBack; //切换系统账号 -(void)GPSwitchGameCenterWithViewController:(UIViewController *)vc switchCallBack:(void (^)())switchCallBack; -(void)cleanUserInfo; @end |