This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.

39 lines
1008 B
C
Raw Normal View History

2021-04-02 02:24:13 +03:00
// Copyright 2015-present 650 Industries. All rights reserved.
// forward declaration for consumer interface
@protocol UMTaskConsumerInterface;
@protocol UMTaskInterface
/**
* Name of the task.
*/
@property (nonatomic, strong, readonly) NSString *__nonnull name;
/**
* Identifier of the application for which the task was created.
*/
@property (nonatomic, strong, readonly) NSString *__nonnull appId;
/**
* The URL to the application for which the task was created.
*/
@property (nonatomic, strong, readonly) NSString *__nonnull appUrl;
/**
* Task consumer instance that is responsible for handling (consuming) this task.
*/
@property (nonatomic, strong, readonly) id<UMTaskConsumerInterface> __nonnull consumer;
/**
* Options passed to the task.
*/
@property (nonatomic, strong) NSDictionary *__nullable options;
/**
* Executes the task with given dictionary data and given error.
*/
- (void)executeWithData:(nullable NSDictionary *)data withError:(nullable NSError *)error;
@end