PoolSdk.h 2.47 KB
#import <Foundation/Foundation.h>
#import "PoolSdk2.h"
 
#import <UIKit/UIKit.h>

@interface PoolSdk : NSObject

@property(nonatomic, strong, readonly)NSString *sdkVersion;


@property(nonatomic, strong)NSString *urlSchemes;

@property BOOL isAppleGzyazfing;

+ (PoolSdk *)shareSDK;


- (void)initSDK:(UIViewController *) control;


-(void)viewDidAppear;

- (void)setViewController:(UIViewController *)viewController;


- (void)loginSDK;

- (void)loginSDK:(UIViewController *)viewController;


- (void)gzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo;


- (BOOL)hasUserCenter;


- (void)gotoUserCenter;


- (void)reportSDK:(PoolReportInfo *)reportInfo;


- (BOOL)hasLogout;


- (void)logoutSDK;


- (BOOL)hasSwitchAccount;


- (void)switchAccount;


- (BOOL)hasExit;


- (void)exitSDK;

- (void)destroySDK;

@property(nonatomic, assign)ESDKOrientation sdkOrientation;

@property(nonatomic, assign)BOOL bShowedFloat;


@property(nonatomic, assign)int serverId;


-(NSString *) getGameChannelId;

- (NSString *) getCustomValue;

- (NSString *) getChannelParameter1;

- (NSString *) getChannelParameter2;

-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray;


- (void)handleOpenurl:(NSURL *)url;

- (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;


- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;


- (void)applicationDidEnterBackground:(UIApplication *)application;

- (void)applicationDidBecomeActive:(UIApplication *)application;

- (void)applicationWillEnterForeground:(UIApplication *)application;

- (void)applicationWillResignActive:(UIApplication *)application;

-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options;

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;

@end