Blame view
ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
2.35 KB
23a302b86
![]() |
1 2 3 |
#import <Foundation/Foundation.h> #import "LSGAccount.h" |
23a302b86
![]() |
4 5 6 |
typedef void (^LSGLoginSuccBlock)(NSString *userId, NSString *sessionKey, LSGAccountType type); |
23a302b86
![]() |
7 8 9 |
typedef void (^LSGDismissBlock)(void); static BOOL isDisableFB = NO; |
44e1460f1
![]() |
10 |
static BOOL isDisableLine = NO; |
b27a5c1eb
![]() |
11 |
static BOOL isDisableGoogle = NO; |
23a302b86
![]() |
12 |
static BOOL hiddenLogo = NO; |
6e6b962fb
![]() |
13 14 |
//默认横屏 static BOOL DeviceOrientationIsHorizontal = YES; |
6cbde3a59
![]() |
15 |
static NSString *version = @"3.6.5"; |
23a302b86
![]() |
16 17 18 19 20 |
@interface LetsGameAPI : NSObject<UIApplicationDelegate> @property (nonatomic, strong) NSString *appId; @property (nonatomic, strong) NSString *appKey; |
1bfd8354c
![]() |
21 |
@property(nonatomic, strong) NSString *channelId; |
23a302b86
![]() |
22 23 |
@property (nonatomic, copy) LSGLoginSuccBlock succBlock; @property (nonatomic, copy) LSGDismissBlock dismissBlock; |
971c75d1b
![]() |
24 |
@property (nonatomic, assign) int isDebug; |
e29d673a0
![]() |
25 |
@property (nonatomic, assign) int decideWebTo; |
23a302b86
![]() |
26 27 28 29 30 |
//@property(nonatomic,strong) NSString *version; + (instancetype)instance; -(NSString*)version; |
050bf6331
![]() |
31 |
- (void)SDKLoginInitofResponse:(void (^)(BOOL result))response; |
23a302b86
![]() |
32 33 34 35 |
- (void)showLoginView; - (void)showLoginViewInView:(UIView *)view; +(void)disableFB:(BOOL)isDisable; |
b27a5c1eb
![]() |
36 |
+(void)disableGoogle:(BOOL)isDisable; |
44e1460f1
![]() |
37 |
+(void)disableLine:(BOOL)isDissable; |
23a302b86
![]() |
38 |
+(BOOL)isFBDisable; |
b27a5c1eb
![]() |
39 |
+(BOOL)isGoogleDisable; |
44e1460f1
![]() |
40 |
+(BOOL)isLineDisable; |
23a302b86
![]() |
41 42 |
+(void)hiddenLogo:(BOOL)isHidden; +(BOOL)isHiddenLogo; |
6e6b962fb
![]() |
43 44 |
+(void)DeviceOrientationIsHorizontal:(BOOL)isDisable; +(BOOL)DeviceOrientationIsHorizontal; |
23a302b86
![]() |
45 46 47 48 49 50 51 |
- (void)logout; - (void)hide; - (BOOL)handleOpenURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication; |
f8353174d
![]() |
52 |
-(void)pWeb:(NSDictionary*) pWebInfo handleCallBack:(void (^)()) pWebAccomplistCallback; |
6e191f658
![]() |
53 54 |
-(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid succCallback:(void (^)(NSString* orderId)) succCallback failCallback:(void (^)(NSString* orderId)) failCallback; |
23a302b86
![]() |
55 56 |
-(void)registeIapObserver; |
971c75d1b
![]() |
57 |
-(void)decideIsDebug:(int)isDebug; |
23a302b86
![]() |
58 |
|
e29d673a0
![]() |
59 |
-(void)decideWebToVersion:(int)decideWebTo; |
bf74f0bb6
![]() |
60 61 62 |
-(void)obtainAccessTokenSuccess:(void (^)(NSString *tokenString, NSString *refreshTime, NSString *expirationTime))success failure:(void (^)(NSString *errorString))failure; |
635b66127
![]() |
63 64 65 66 67 |
//获取是否展示安全页面,YES展示侵权页面,NO展示非侵权页面 -(void)gameObtainSafeSetInfoWithAppId:(NSString *)appId ChannelId:(NSString *)channelId handleCallBack:(void (^)(BOOL resultStatus))callBack; |
d7e540e1e
![]() |
68 69 |
//关闭登录页面 -(void)hidenLogInView; |
23a302b86
![]() |
70 |
@end |