Blame view
ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
2.75 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;  | 
| 
050bf6331
 
 | 
21  | 
static NSString *version = @"3.5.23";  | 
| 
23a302b86
 
 | 
22 23 24 25 26  | 
@interface LetsGameAPI : NSObject<UIApplicationDelegate> @property (nonatomic, strong) NSString *appId; @property (nonatomic, strong) NSString *appKey;  | 
| 
1bfd8354c
 
 | 
27  | 
@property(nonatomic, strong) NSString *channelId;  | 
| 
23a302b86
 
 | 
28 29  | 
@property (nonatomic, copy) LSGLoginSuccBlock succBlock; @property (nonatomic, copy) LSGDismissBlock dismissBlock;  | 
| 
971c75d1b
 
 | 
30  | 
@property (nonatomic, assign) int isDebug;  | 
| 
e29d673a0
 
 | 
31  | 
@property (nonatomic, assign) int decideWebTo;  | 
| 
23a302b86
 
 | 
32 33 34 35 36 37  | 
@property (nonatomic,retain) id<VKBridgeProtocol> vkBridge; //@property(nonatomic,strong) NSString *version; + (instancetype)instance; -(NSString*)version;  | 
| 
050bf6331
 
 | 
38  | 
- (void)SDKLoginInitofResponse:(void (^)(BOOL result))response;  | 
| 
23a302b86
 
 | 
39 40 41 42  | 
- (void)showLoginView; - (void)showLoginViewInView:(UIView *)view; +(void)disableFB:(BOOL)isDisable;  | 
| 
b27a5c1eb
 
 | 
43  | 
+(void)disableGoogle:(BOOL)isDisable;  | 
| 
44e1460f1
 
 | 
44 45  | 
+(void)disableWeChat:(BOOL)isDisable; +(void)disableLine:(BOOL)isDissable;  | 
| 
23a302b86
 
 | 
46 47  | 
+(BOOL)isFBDisable; +(BOOL)isVKEnable;  | 
| 
44e1460f1
 
 | 
48  | 
+(BOOL)isWeChatDisable;  | 
| 
b27a5c1eb
 
 | 
49  | 
+(BOOL)isGoogleDisable;  | 
| 
44e1460f1
 
 | 
50  | 
+(BOOL)isLineDisable;  | 
| 
23a302b86
 
 | 
51 52  | 
+(void)hiddenLogo:(BOOL)isHidden; +(BOOL)isHiddenLogo;  | 
| 
6e6b962fb
 
 | 
53 54  | 
+(void)DeviceOrientationIsHorizontal:(BOOL)isDisable; +(BOOL)DeviceOrientationIsHorizontal;  | 
| 
23a302b86
 
 | 
55 56 57 58  | 
- (void)logout; - (void)hide;  | 
| 
e8af75741
 
 | 
59 60 61  | 
//是否安装微信 -(BOOL)isWeChatInstall; //向微信注册应用  | 
| 
050bf6331
 
 | 
62  | 
-(void)registerAppWeChatOfSuccess:(void (^)())success  | 
| 
e8af75741
 
 | 
63  | 
failure:(void (^)())failure;  | 
| 
23a302b86
 
 | 
64 65 66  | 
  
  - (BOOL)handleOpenURL:(NSURL *)url
      sourceApplication:(NSString *)sourceApplication;
 | 
| 
f8353174d
 
 | 
67  | 
-(void)pWeb:(NSDictionary*) pWebInfo handleCallBack:(void (^)()) pWebAccomplistCallback;  | 
| 
6e191f658
 
 | 
68 69  | 
-(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid succCallback:(void (^)(NSString* orderId)) succCallback failCallback:(void (^)(NSString* orderId)) failCallback;  | 
| 
23a302b86
 
 | 
70 71  | 
-(void)registeIapObserver;  | 
| 
971c75d1b
 
 | 
72  | 
-(void)decideIsDebug:(int)isDebug;  | 
| 
23a302b86
 
 | 
73  | 
|
| 
e29d673a0
 
 | 
74  | 
-(void)decideWebToVersion:(int)decideWebTo;  | 
| 
bf74f0bb6
 
 | 
75 76 77  | 
  
  -(void)obtainAccessTokenSuccess:(void (^)(NSString *tokenString, NSString *refreshTime, NSString *expirationTime))success
                          failure:(void (^)(NSString *errorString))failure;
 | 
| 
635b66127
 
 | 
78 79 80 81 82  | 
  
  //获取是否展示安全页面,YES展示侵权页面,NO展示非侵权页面
  -(void)gameObtainSafeSetInfoWithAppId:(NSString *)appId
                              ChannelId:(NSString *)channelId
                             handleCallBack:(void (^)(BOOL resultStatus))callBack;
 | 
| 
d7e540e1e
 
 | 
83 84  | 
//关闭登录页面 -(void)hidenLogInView;  | 
| 
23a302b86
 
 | 
85  | 
@end  |