APBToygerBaseTask.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // APFBaseTask.h
  3. // APFaceDetectBiz
  4. //
  5. // Created by 晗羽 on 8/25/16.
  6. // Copyright © 2016 DTF. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <Foundation/Foundation.h>
  10. #import <BioAuthEngine/IBioAuthTask.h>
  11. #import <BioAuthEngine/APBTaskContext.h>
  12. #import <BioAuthEngine/APBLogger.h>
  13. #import <BioAuthEngine/AFEAlertView.h>
  14. #import <APBToygerFacade/APBToygerUtils.h>
  15. #import <BioAuthEngine/APBToygerRemoteConfig.h>
  16. #import <BioAuthEngine/APBToygerBehavlogManager.h>
  17. //#import "APBToygerDataCenter.h"
  18. #import <BioAuthEngine/BioAuthCommonSetting.h>
  19. #import <APBToygerFacade/APBToygerViewController.h>
  20. @class DTFLogMonitor,APBToygerDataCenter;
  21. typedef void (^APFAlertExtraAction)();
  22. @interface APBToygerBaseTask : NSObject <IBioAuthTask>
  23. //协议定义的属性
  24. @property(nonatomic, copy)NSString *taskName; //任务名
  25. @property(nonatomic, strong)APBTaskContext *context; //任务数据
  26. @property(nonatomic, weak)NSMutableDictionary *pipeInfo; //共享数据
  27. //公用属性
  28. @property(nonatomic, weak)UIViewController *parentViewController; //父viewController
  29. @property(nonatomic, weak)APBToygerViewController *currentViewController; //当前viewController
  30. @property(nonatomic, weak)UIView *currentView; //当前显示的界面
  31. @property(nonatomic, copy)commandBlock bioCommandBlock; //对框架进行操作的block
  32. @property(nonatomic, strong)APBToygerRemoteConfig * bisConfig; //bis下放的配置参数
  33. @property(nonatomic, strong)APBToygerDataCenter * dataCenter; //行为日志
  34. @property(nonatomic, copy)NSString *bisToken; //bisToken
  35. @property(nonatomic, assign)NSInteger currentRetryCnt; //当前重试次数
  36. @property(nonatomic, assign)BOOL soundStatus; //当前声音状态
  37. //@property(nonatomic, assign)BOOL isLoginMode; //当前场景是否为登录场景
  38. @property(nonatomic, assign)BOOL isMYBank; //是否是网商银行
  39. @property(nonatomic, strong)DTFLogMonitor *monitor; //埋点
  40. - (void)exitWithResult:(APBResultType)result failReason:(NSString *)failReason retCodeSub:(NSString *)retCodeSub retMessageSub:(NSString *)retMessageSub;
  41. - (void)eventQuitWithCompletionCallback:(BioAuthExecCallback)callback;
  42. /**
  43. * 用户选择重试
  44. */
  45. - (void)handleRetryActionWithScene:(NSString *)scene
  46. buttonTitle:(NSString *)title
  47. extAction:(APFAlertExtraAction)action;
  48. /**
  49. * 用户选择退出
  50. */
  51. - (void)handleExitActionWithScene:(NSString *)scene
  52. buttonTitle:(NSString *)title
  53. exitReason:(APBResultType)reason
  54. extAction:(APFAlertExtraAction)action;
  55. /**
  56. * 用户选择继续
  57. */
  58. - (void)handleContinueActionWithScene:(NSString *)scene
  59. buttonTitle:(NSString *)title
  60. extaction:(APFAlertExtraAction)action;
  61. /**
  62. * 消除VC的方式,加菲和樱桃不同
  63. */
  64. - (void)dismissViewControllerAnimated: (BOOL)flag completion:(void (^ __nullable)(void))completion;
  65. @end