洛阳学员端
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.

75 lines
1.9 KiB

8 months ago
  1. //
  2. // AuthViewProvider.h
  3. // DTFIdentityManager
  4. //
  5. // Created by mengbingchuan on 2022/6/1.
  6. // Copyright © 2022 DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <AVFoundation/AVFoundation.h>
  10. #import <UIKit/UIKit.h>
  11. #import <BioAuthEngine/DTFViewProviderProtocol.h>
  12. #import <BioAuthEngine/DTFFaceViewProtocol.h>
  13. #import "MultiFactorTaskModel.h"
  14. @protocol MultiFactorTaskViewDelegate;
  15. @interface MultiFactorAlertModel : NSObject
  16. @property (nonatomic, copy) NSString *type;
  17. @property (nonatomic, copy) NSString *title;
  18. @property (nonatomic, copy) NSString *message;
  19. @property (nonatomic, copy) NSString *confirmTitle;
  20. @property (nonatomic, copy) void (^confirmBlock)(NSString *type);
  21. @property (nonatomic, copy) NSString *cancelTitle;
  22. @property (nonatomic, copy) void (^cancelBlock)(NSString *type);
  23. @end
  24. @protocol MultiFactorTaskViewProtocol <NSObject>
  25. @property (nonatomic, weak) id<MultiFactorTaskViewDelegate> delegate;
  26. @property (nonatomic, strong) MultiFactorTaskModel *model;
  27. - (void)alertWithModel:(MultiFactorAlertModel *)model onController:(UIViewController *)controller;
  28. - (void)handleFaceStateChange:(ToygerMessage)state
  29. stateTips:(NSString *)tips
  30. actionGuide:(NSString *)guide
  31. progress:(CGFloat)progress;
  32. - (void)countDown:(int)left;
  33. - (void)nextAction:(int)index;
  34. - (void)reset;
  35. - (UIView *)view;
  36. @end
  37. @protocol MultiFactorTaskViewDelegate <NSObject>
  38. - (void)viewExit:(id<MultiFactorTaskViewProtocol>)view;
  39. - (void)viewStartRecord:(id<MultiFactorTaskViewProtocol>)view;
  40. - (void)viewStopRecord:(id<MultiFactorTaskViewProtocol>)view;
  41. @end
  42. @protocol MultiFactorViewProviderProtocol <DTFViewProviderProtocol>
  43. - (id<MultiFactorTaskViewProtocol>)viewForRead:(MultiFactorTaskModel *)model;
  44. - (id<MultiFactorTaskViewProtocol>)viewForQuestion:(MultiFactorTaskModel *)model;
  45. - (id<MultiFactorTaskViewProtocol>)viewForRegister:(MultiFactorTaskModel *)model;
  46. @end