39 lines
809 B
Objective-C
39 lines
809 B
Objective-C
//
|
|
// TFWeChatPermissionsManager.h
|
|
// TFReader
|
|
//
|
|
// Created by 谢腾飞 on 2020/12/5.
|
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef NS_ENUM(NSUInteger, TFWeChatPermissionsType) {
|
|
TFWeChatPermissionsTypeLogin,
|
|
TFWeChatPermissionsTypeBinding
|
|
};
|
|
|
|
@protocol TFWeChatPermissionsDelegate <NSObject>
|
|
@optional
|
|
// 登录成功
|
|
- (void)wechatResponseSuccess:(TFUserInfoManager *)userData;
|
|
|
|
// 登录失败
|
|
- (void)wechatResponseFail:(NSString *)error;
|
|
@end
|
|
|
|
@interface TFWeChatPermissionsManager : NSObject
|
|
|
|
@property (nonatomic, weak) id <TFWeChatPermissionsDelegate> delegate;
|
|
|
|
interface_singleton
|
|
|
|
- (void)weChatPermissionsType:(TFWeChatPermissionsType)type;
|
|
|
|
+ (BOOL)isInstallWechat;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|