feat:引入人脸识别sdk
This commit is contained in:
1 parent
ce16eaf82e
commit
158d012eff
331 files changed
+13539
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MultiFactorBaseModel.h
|
||||
// MultiFactorFacade
|
||||
//
|
||||
// Created by wangsizhe on 2022/6/1.
|
||||
// Copyright © 2022 DTF. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MultiFactorBaseModel : NSObject
|
||||
- (id)initWithDictionary:(NSDictionary *)dic;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// MultiFactorFacade.h
|
||||
// MultiFactorFacade
|
||||
//
|
||||
// Created by mengbingchuan on 2022/5/11.
|
||||
// Copyright © 2022 DTF. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import <BioAuthEngine/IBioAuthFactor.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MultiFactorFacade : NSObject<IBioAuthFactor>
|
||||
+ (NSString*)getTokenid;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// MultiFactorModel.h
|
||||
// MultiFactorFacade
|
||||
//
|
||||
// Created by wangsizhe on 2022/6/1.
|
||||
// Copyright © 2022 DTF. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MultiFactorBaseModel.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@interface MultiFactorTaskContent :MultiFactorBaseModel
|
||||
@property (nonatomic, copy) NSString *answerTitle;
|
||||
@property (nonatomic, copy) NSString *question;
|
||||
@property (nonatomic, assign) int time;
|
||||
@property (nonatomic, copy) NSString *answerType;
|
||||
@end
|
||||
|
||||
@interface MultiFactorTaskModel : MultiFactorBaseModel
|
||||
@property (nonatomic, copy) NSArray<MultiFactorTaskContent *> *content;
|
||||
@property (nonatomic, copy) NSString *recognizeType;
|
||||
@property (nonatomic, copy) NSString *recognizeTypeName;
|
||||
+ (instancetype)itemWithDic:(NSDictionary *)dic;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
//
|
||||
// AuthViewProvider.h
|
||||
// DTFIdentityManager
|
||||
//
|
||||
// Created by mengbingchuan on 2022/6/1.
|
||||
// Copyright © 2022 DTF. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AVFoundation/AVFoundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <BioAuthEngine/DTFViewProviderProtocol.h>
|
||||
#import <BioAuthEngine/DTFFaceViewProtocol.h>
|
||||
#import <ToygerService/ToygerService.h>
|
||||
|
||||
#import "MultiFactorTaskModel.h"
|
||||
|
||||
@protocol MultiFactorTaskViewDelegate;
|
||||
|
||||
@interface MultiFactorAlertModel : NSObject
|
||||
|
||||
@property (nonatomic, copy) NSString *type;
|
||||
|
||||
@property (nonatomic, copy) NSString *title;
|
||||
@property (nonatomic, copy) NSString *message;
|
||||
|
||||
@property (nonatomic, copy) NSString *confirmTitle;
|
||||
@property (nonatomic, copy) void (^confirmBlock)(NSString *type);
|
||||
|
||||
@property (nonatomic, copy) NSString *cancelTitle;
|
||||
@property (nonatomic, copy) void (^cancelBlock)(NSString *type);
|
||||
|
||||
@end
|
||||
|
||||
@protocol MultiFactorTaskViewProtocol <NSObject>
|
||||
|
||||
@property (nonatomic, weak) id<MultiFactorTaskViewDelegate> delegate;
|
||||
@property (nonatomic, strong) MultiFactorTaskModel *model;
|
||||
|
||||
- (void)alertWithModel:(MultiFactorAlertModel *)model onController:(UIViewController *)controller;
|
||||
|
||||
- (void)handleFaceStateChange:(ToygerMessage)state
|
||||
stateTips:(NSString *)tips
|
||||
actionGuide:(NSString *)guide
|
||||
progress:(CGFloat)progress;
|
||||
|
||||
- (void)countDown:(int)left;
|
||||
|
||||
- (void)nextAction:(int)index;
|
||||
|
||||
- (void)reset;
|
||||
|
||||
- (UIView *)view;
|
||||
|
||||
@end
|
||||
|
||||
@protocol MultiFactorTaskViewDelegate <NSObject>
|
||||
|
||||
- (void)viewExit:(id<MultiFactorTaskViewProtocol>)view;
|
||||
|
||||
- (void)viewStartRecord:(id<MultiFactorTaskViewProtocol>)view;
|
||||
|
||||
- (void)viewStopRecord:(id<MultiFactorTaskViewProtocol>)view;
|
||||
|
||||
@end
|
||||
|
||||
@protocol MultiFactorViewProviderProtocol <DTFViewProviderProtocol>
|
||||
|
||||
- (id<MultiFactorTaskViewProtocol>)viewForRead:(MultiFactorTaskModel *)model;
|
||||
|
||||
- (id<MultiFactorTaskViewProtocol>)viewForQuestion:(MultiFactorTaskModel *)model;
|
||||
|
||||
- (id<MultiFactorTaskViewProtocol>)viewForRegister:(MultiFactorTaskModel *)model;
|
||||
|
||||
@end
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+36
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyCollectedDataType</key>
|
||||
<string></string>
|
||||
<key>NSPrivacyCollectedDataTypeLinked</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypeTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyCollectedDataTypePurposes</key>
|
||||
<array>
|
||||
<string></string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||
<array>
|
||||
<string>E174.1</string>
|
||||
</array>
|
||||
<key>NSPrivacyAccessedAPIType</key>
|
||||
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
Binary file not shown.
Reference in new issue
Block a user