GMTDDeliveryTaskManager
@interface GMTDDeliveryTaskManager : NSObject
Object that manages task creation and updates.
-
Unavailable
This class has no public initializers; obtain this object from the
deliveryTaskManager
property of theGMTDDeliveryDriverAPI
object.Declaration
Objective-C
- (null_unspecified instancetype)init;
-
Updates a task with the given request.
Declaration
Swift
func updateTask(with request: GMTDUpdateDeliveryTaskRequest) async throws -> GMTDDeliveryTask
Objective-C
- (void)updateTaskWithRequest:(nonnull GMTDUpdateDeliveryTaskRequest *)request completion:(nonnull GMTDDeliveryTaskManagerCompletionHandler) completion;
Parameters
request
The request to update the task.
completion
A block to be executed when the request is completed.
-
Creates a task with the given request.
Declaration
Swift
func createTask(with request: GMTDCreateDeliveryTaskRequest) async throws -> GMTDDeliveryTask
Objective-C
- (void)createTaskWithRequest:(nonnull GMTDCreateDeliveryTaskRequest *)request completion:(nonnull GMTDDeliveryTaskManagerCompletionHandler) completion;
Parameters
request
The request to create the task.
completion
A block to be executed when the request is completed.