//
//  AccountSDK.h
//  AccountSDK
//
//  Created by steve on 2019/1/24.
//  Copyright © 2019  Technology Co.,Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "AASEnumDefine.h"
#import "AASAccountLoginModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface AASAccountSDK : NSObject

#pragma mark - Init

+ (void)initSDK:(NSString *)productId;

#pragma mark - Application

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

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

#pragma mark - Login

+ (void)setLoginCallback:(void (^)(AASAccountLoginModel *model))succeedCallback errorCallback:(void (^)(NSError *error))errorCallback;

+ (void)login;

+ (void)loginWithVisible:(BOOL)visible; // visible为false，表示自动登录不展示弹窗

#pragma mark - UserCenter

+ (void)showUserCenter:(UIViewController *)vc;

#pragma mark - Parameter

+ (NSString *)getFacebookLoginedToken;

+ (NSString *)getGGID;

@end

NS_ASSUME_NONNULL_END
