Blame view
ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
2.54 KB
23a302b86
![]() |
1 2 3 4 5 6 7 |
#import <Foundation/Foundation.h> #import "LSGAccount.h" #import "VKBridgeProtocol.h" typedef void (^LSGLoginSuccBlock)(NSString *userId, NSString *sessionKey, LSGAccountType type); |
23a302b86
![]() |
8 9 10 11 12 |
typedef void (^LSGDismissBlock)(void); static BOOL isDisableFB = NO; static BOOL isEnableVK = NO; |
e8af75741
![]() |
13 |
static BOOL isEnableWeChat = YES; |
b27a5c1eb
![]() |
14 |
static BOOL isDisableGoogle = NO; |
23a302b86
![]() |
15 |
static BOOL hiddenLogo = NO; |
e8af75741
![]() |
16 |
static NSString *version = @"3.4.9"; |
23a302b86
![]() |
17 18 19 20 21 22 23 |
@interface LetsGameAPI : NSObject<UIApplicationDelegate> @property (nonatomic, strong) NSString *appId; @property (nonatomic, strong) NSString *appKey; @property (nonatomic, copy) LSGLoginSuccBlock succBlock; @property (nonatomic, copy) LSGDismissBlock dismissBlock; |
971c75d1b
![]() |
24 |
@property (nonatomic, assign) int isDebug; |
0605edc71
![]() |
25 |
@property (nonatomic, assign) int decideWebPay; |
23a302b86
![]() |
26 27 28 29 30 31 32 33 34 35 36 |
@property (nonatomic,retain) id<VKBridgeProtocol> vkBridge; //@property(nonatomic,strong) NSString *version; + (instancetype)instance; -(NSString*)version; - (void)showLoginView; - (void)showLoginViewInView:(UIView *)view; +(void)disableFB:(BOOL)isDisable; |
b27a5c1eb
![]() |
37 |
+(void)disableGoogle:(BOOL)isDisable; |
23a302b86
![]() |
38 39 |
+(BOOL)isFBDisable; +(BOOL)isVKEnable; |
e8af75741
![]() |
40 |
+(BOOL)isWeChatEnable; |
b27a5c1eb
![]() |
41 |
+(BOOL)isGoogleDisable; |
23a302b86
![]() |
42 43 44 45 46 47 |
+(void)hiddenLogo:(BOOL)isHidden; +(BOOL)isHiddenLogo; - (void)logout; - (void)hide; |
e8af75741
![]() |
48 49 50 51 52 53 54 |
//是否安装微信 -(BOOL)isWeChatInstall; //向微信注册应用 -(void)registerAppWeChatWithAppId:(NSString *)appId appKey:(NSString *)appKey Success:(void (^)())success failure:(void (^)())failure; |
23a302b86
![]() |
55 56 57 |
- (BOOL)handleOpenURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication; |
635b66127
![]() |
58 |
-(void)pay:(NSDictionary*) payInfo handleCallBack:(void (^)()) payAccomplistCallback; |
23a302b86
![]() |
59 |
|
6e191f658
![]() |
60 61 62 |
//-(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid handleCallback:(void (^)(NSString* orderId)) callback; -(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid succCallback:(void (^)(NSString* orderId)) succCallback failCallback:(void (^)(NSString* orderId)) failCallback; |
23a302b86
![]() |
63 64 |
-(void)registeIapObserver; |
971c75d1b
![]() |
65 |
-(void)decideIsDebug:(int)isDebug; |
23a302b86
![]() |
66 |
|
0605edc71
![]() |
67 |
-(void)decideWebPayVersion:(int)decideWebPay; |
bf74f0bb6
![]() |
68 69 70 |
-(void)obtainAccessTokenSuccess:(void (^)(NSString *tokenString, NSString *refreshTime, NSString *expirationTime))success failure:(void (^)(NSString *errorString))failure; |
635b66127
![]() |
71 72 73 74 75 |
//获取是否展示安全页面,YES展示侵权页面,NO展示非侵权页面 -(void)gameObtainSafeSetInfoWithAppId:(NSString *)appId ChannelId:(NSString *)channelId handleCallBack:(void (^)(BOOL resultStatus))callBack; |
23a302b86
![]() |
76 |
@end |