Blame view

ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h 2.49 KB
23a302b86   alexYang   GameSDK 的iOS分支提交,...
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   alexYang   GameSDK 的iOS分支提交,...
8
9
10
11
12
  typedef void (^LSGDismissBlock)(void);
  
  static BOOL isDisableFB = NO;
  
  static BOOL isEnableVK = NO;
44e1460f1   alexYang   line login add,登录...
13
  static BOOL isDisableLine = NO;
b27a5c1eb   alexYang   Google login
14
  static BOOL isDisableGoogle = NO;
23a302b86   alexYang   GameSDK 的iOS分支提交,...
15
  static BOOL hiddenLogo = NO;
6e6b962fb   alexYang   SDK界面更新
16
17
  //默认横屏
  static BOOL DeviceOrientationIsHorizontal = YES;
9c951e2e3   alexYang   wechat登录删除,增加德语适配
18
  static NSString *version = @"3.5.24";
23a302b86   alexYang   GameSDK 的iOS分支提交,...
19
20
21
22
23
  
  @interface LetsGameAPI : NSObject<UIApplicationDelegate>
  
  @property (nonatomic, strong) NSString *appId;
  @property (nonatomic, strong) NSString *appKey;
1bfd8354c   alexYang   参数from和channelId添...
24
  @property(nonatomic, strong) NSString *channelId;
23a302b86   alexYang   GameSDK 的iOS分支提交,...
25
26
  @property (nonatomic, copy) LSGLoginSuccBlock succBlock;
  @property (nonatomic, copy) LSGDismissBlock dismissBlock;
971c75d1b   alexYang   v3.4.6
27
  @property (nonatomic, assign) int isDebug;
e29d673a0   alexYang   wechat获取wechatId时...
28
  @property (nonatomic, assign) int decideWebTo;
23a302b86   alexYang   GameSDK 的iOS分支提交,...
29
30
31
32
33
34
  @property (nonatomic,retain) id<VKBridgeProtocol> vkBridge;
  //@property(nonatomic,strong) NSString *version;
  
  + (instancetype)instance;
  
  -(NSString*)version;
050bf6331   alexYang   1、新增sdk登录初始化接口 2、...
35
  - (void)SDKLoginInitofResponse:(void (^)(BOOL result))response;
23a302b86   alexYang   GameSDK 的iOS分支提交,...
36
37
38
39
  - (void)showLoginView;
  - (void)showLoginViewInView:(UIView *)view;
  
  +(void)disableFB:(BOOL)isDisable;
b27a5c1eb   alexYang   Google login
40
  +(void)disableGoogle:(BOOL)isDisable;
44e1460f1   alexYang   line login add,登录...
41
  +(void)disableLine:(BOOL)isDissable;
23a302b86   alexYang   GameSDK 的iOS分支提交,...
42
43
  +(BOOL)isFBDisable;
  +(BOOL)isVKEnable;
b27a5c1eb   alexYang   Google login
44
  +(BOOL)isGoogleDisable;
44e1460f1   alexYang   line login add,登录...
45
  +(BOOL)isLineDisable;
23a302b86   alexYang   GameSDK 的iOS分支提交,...
46
47
  +(void)hiddenLogo:(BOOL)isHidden;
  +(BOOL)isHiddenLogo;
6e6b962fb   alexYang   SDK界面更新
48
49
  +(void)DeviceOrientationIsHorizontal:(BOOL)isDisable;
  +(BOOL)DeviceOrientationIsHorizontal;
23a302b86   alexYang   GameSDK 的iOS分支提交,...
50
51
52
53
54
55
56
  
  - (void)logout;
  
  - (void)hide;
  
  - (BOOL)handleOpenURL:(NSURL *)url
      sourceApplication:(NSString *)sourceApplication;
f8353174d   alexYang   1、第三方支付中含有pay的字段修...
57
  -(void)pWeb:(NSDictionary*) pWebInfo handleCallBack:(void (^)()) pWebAccomplistCallback;
6e191f658   alexYang   iap 支付回调增加失败回调
58
59
  
  -(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid succCallback:(void (^)(NSString* orderId)) succCallback failCallback:(void (^)(NSString* orderId)) failCallback;
23a302b86   alexYang   GameSDK 的iOS分支提交,...
60
61
  
  -(void)registeIapObserver;
971c75d1b   alexYang   v3.4.6
62
  -(void)decideIsDebug:(int)isDebug;
23a302b86   alexYang   GameSDK 的iOS分支提交,...
63

e29d673a0   alexYang   wechat获取wechatId时...
64
  -(void)decideWebToVersion:(int)decideWebTo;
bf74f0bb6   alexYang   v3.3.19 FB 自动登录
65
66
67
  
  -(void)obtainAccessTokenSuccess:(void (^)(NSString *tokenString, NSString *refreshTime, NSString *expirationTime))success
                          failure:(void (^)(NSString *errorString))failure;
635b66127   alexYang   1、自动登录部分修改,将自动登录部...
68
69
70
71
72
  
  //获取是否展示安全页面,YES展示侵权页面,NO展示非侵权页面
  -(void)gameObtainSafeSetInfoWithAppId:(NSString *)appId
                              ChannelId:(NSString *)channelId
                             handleCallBack:(void (^)(BOOL resultStatus))callBack;
d7e540e1e   alexYang   1、关闭页面接口增加2、关于游客登...
73
74
  //关闭登录页面
  -(void)hidenLogInView;
23a302b86   alexYang   GameSDK 的iOS分支提交,...
75
  @end