ifish/Ifish/AlibcTradeSDK-3.1.1.96/Frameworks/AlibcTradeBiz.framework/Headers/AlibcLoginBridge.h

70 lines
1.3 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* AlibcLoginBridge.h
*
* 阿里百川电商
* 项目名称:阿里巴巴电商 AlibcTradeBiz
* 版本号3.1.1.96
* 发布时间2017-03-24
* 开发团队:阿里巴巴百川商业化团队
* 阿里巴巴电商SDK答疑群号1229144682(阿里旺旺)
* Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#ifndef AlibcLoginBridge_h
#define AlibcLoginBridge_h
@interface AlibcLoginBridge : NSObject
/**
登录模块标准初始化接口
*/
+ (void)initLogin;
/**
登录模块极简版初始化接口
@brief 极简版没有依赖安全模块, 需要手动传入 Appkey
@param appkey appkey
*/
+ (void)initLoginWithAppkey:(NSString *)appkey;
+ (BOOL)isLoginSvrAvaleable;
+ (void)showLogin:(UIViewController *)parentController
successCallback:(void (^)(NSString *userID))onSuccess
failedCallback:(void (^)(NSError *error))onFailure;
+ (void)logout;
+ (void)setEnvironment:(AlibcEnvironment)env;
/**
是否是登陆URL
*/
+ (BOOL)isLoginURL:(NSString *)url;
/**
是否是登出URL
*/
+ (BOOL)isLogoutUrl:(NSString *)url;
/**
是否是手淘跳回url
*/
+ (BOOL)isTBBackUrl:(NSString *)url;
/**
手淘跳转回来拿到url调用
*/
+ (void)loginByURL:(NSURL *)url;
@end
#endif