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

43 lines
1.4 KiB

7 months ago
  1. //
  2. // APBEvent.h
  3. // BioAuthEngine
  4. //
  5. // Created by yukun.tyk on 11/26/15.
  6. // Copyright © 2015 DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class APBCommand;
  10. extern NSString *const kKeepUploadPageKey; //extInfo key: 生物识别产品是否要保持上传界面,默认不保持
  11. /**
  12. * task可以响应的事件类型
  13. */
  14. typedef NS_ENUM(NSInteger, APBEventType) {
  15. EVENT_QUIT = 100, //退出
  16. EVENT_CLOSE_UPLOADPAGE = 101, //业务方关闭上传界面
  17. EVENT_BIS_RETURN = 102, //bis服务器返回
  18. EVENT_SYSTEM_INTERRUPT = 200, //系统中断
  19. EVENT_SYSTEM_INTERRUPT_RESUME = 201, //系统中断恢复
  20. EVENT_GLOBAL_TIMEOUT = 202, //全局超时
  21. EVENT_TASK_TIMEOUT = 203, //task超时
  22. EVENT_ALERT_APPEAR = 204, //alert框显示
  23. EVENT_ALERT_DISAPPEAR = 205, //alert框退出
  24. EVENT_ABNORMAL_CLOSE = 206, //异常退出
  25. EVENT_SYSTEM_ENTER_FOREGROUND = 207, //后台返回前台
  26. };
  27. @interface APBEvent : NSObject
  28. @property(nonatomic, assign, readonly) APBEventType eventType;
  29. @property(nonatomic, strong, readonly) NSDictionary *params;
  30. - (instancetype)initWithEventType:(APBEventType)eventType
  31. withParam:(NSDictionary *)params;
  32. + (instancetype)eventWithCommand:(APBCommand *)command;
  33. @end