12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #import <Foundation/Foundation.h>
- @class APBCommand;
- extern NSString *const kKeepUploadPageKey;
- typedef NS_ENUM(NSInteger, APBEventType) {
- EVENT_QUIT = 100,
- EVENT_CLOSE_UPLOADPAGE = 101,
- EVENT_BIS_RETURN = 102,
- EVENT_SYSTEM_INTERRUPT = 200,
- EVENT_SYSTEM_INTERRUPT_RESUME = 201,
- EVENT_GLOBAL_TIMEOUT = 202,
- EVENT_TASK_TIMEOUT = 203,
- EVENT_ALERT_APPEAR = 204,
- EVENT_ALERT_DISAPPEAR = 205,
- EVENT_ABNORMAL_CLOSE = 206,
- EVENT_SYSTEM_ENTER_FOREGROUND = 207,
- };
- @interface APBEvent : NSObject
- @property(nonatomic, assign, readonly) APBEventType eventType;
- @property(nonatomic, strong, readonly) NSDictionary *params;
- - (instancetype)initWithEventType:(APBEventType)eventType
- withParam:(NSDictionary *)params;
- + (instancetype)eventWithCommand:(APBCommand *)command;
- @end
|