You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
809 B
39 lines
809 B
4 years ago
|
//
|
||
|
// 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
|