Blame view
ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
2.82 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; |
44e1460f1
![]() |
13 14 15 |
static BOOL isDisableLine = NO; static BOOL isDisableWeChat = NO; |
e8af75741
![]() |
16 |
|
b27a5c1eb
![]() |
17 |
static BOOL isDisableGoogle = NO; |
23a302b86
![]() |
18 |
static BOOL hiddenLogo = NO; |
6e6b962fb
![]() |
19 20 |
//默认横屏 static BOOL DeviceOrientationIsHorizontal = YES; |
3ee5c0ed2
![]() |
21 |
static NSString *version = @"3.4.13"; |
23a302b86
![]() |
22 23 24 25 26 27 28 |
@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
![]() |
29 |
@property (nonatomic, assign) int isDebug; |
0605edc71
![]() |
30 |
@property (nonatomic, assign) int decideWebPay; |
23a302b86
![]() |
31 32 33 34 35 36 37 38 39 40 41 |
@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
![]() |
42 |
+(void)disableGoogle:(BOOL)isDisable; |
44e1460f1
![]() |
43 44 |
+(void)disableWeChat:(BOOL)isDisable; +(void)disableLine:(BOOL)isDissable; |
23a302b86
![]() |
45 46 |
+(BOOL)isFBDisable; +(BOOL)isVKEnable; |
44e1460f1
![]() |
47 |
+(BOOL)isWeChatDisable; |
b27a5c1eb
![]() |
48 |
+(BOOL)isGoogleDisable; |
44e1460f1
![]() |
49 |
+(BOOL)isLineDisable; |
23a302b86
![]() |
50 51 |
+(void)hiddenLogo:(BOOL)isHidden; +(BOOL)isHiddenLogo; |
6e6b962fb
![]() |
52 53 |
+(void)DeviceOrientationIsHorizontal:(BOOL)isDisable; +(BOOL)DeviceOrientationIsHorizontal; |
23a302b86
![]() |
54 55 56 57 |
- (void)logout; - (void)hide; |
e8af75741
![]() |
58 59 60 61 62 63 64 |
//是否安装微信 -(BOOL)isWeChatInstall; //向微信注册应用 -(void)registerAppWeChatWithAppId:(NSString *)appId appKey:(NSString *)appKey Success:(void (^)())success failure:(void (^)())failure; |
23a302b86
![]() |
65 66 67 |
- (BOOL)handleOpenURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication; |
635b66127
![]() |
68 |
-(void)pay:(NSDictionary*) payInfo handleCallBack:(void (^)()) payAccomplistCallback; |
23a302b86
![]() |
69 |
|
6e191f658
![]() |
70 71 72 |
//-(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
![]() |
73 74 |
-(void)registeIapObserver; |
971c75d1b
![]() |
75 |
-(void)decideIsDebug:(int)isDebug; |
23a302b86
![]() |
76 |
|
0605edc71
![]() |
77 |
-(void)decideWebPayVersion:(int)decideWebPay; |
bf74f0bb6
![]() |
78 79 80 |
-(void)obtainAccessTokenSuccess:(void (^)(NSString *tokenString, NSString *refreshTime, NSString *expirationTime))success failure:(void (^)(NSString *errorString))failure; |
635b66127
![]() |
81 82 83 84 85 |
//获取是否展示安全页面,YES展示侵权页面,NO展示非侵权页面 -(void)gameObtainSafeSetInfoWithAppId:(NSString *)appId ChannelId:(NSString *)channelId handleCallBack:(void (^)(BOOL resultStatus))callBack; |
23a302b86
![]() |
86 |
@end |