TapLogin-Unity/Plugins/iOS/TapLoginSDK.framework/Headers/TapAuthResult.h

37 lines
806 B
C
Raw Normal View History

2023-11-02 19:50:56 +08:00
//
// TapAuthResult.h
// TapCommonSDK
//
// Created by 黄驿峰 on 2022/1/27.
//
#import <Foundation/Foundation.h>
#import <TapLoginSDK/TTSDKAccessToken.h>
typedef NS_ENUM(NSInteger, TapAuthResultType) {
TapAuthResultTypeSuccess,
TapAuthResultTypeCancel,
TapAuthResultTypeError,
};
NS_ASSUME_NONNULL_BEGIN
@interface TapAuthResult : NSObject
@property (nonatomic, assign, readonly) TapAuthResultType type;
@property (nonatomic, strong, nullable, readonly) TTSDKAccessToken *token;
@property (nonatomic, strong, nullable, readonly) NSError *error;
+ (instancetype)successWithToken:(TTSDKAccessToken *)token;
+ (instancetype)failWithError:(NSError *)error;
+ (instancetype)cancel;
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_END