GoogleRidesharingDriver Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTDDeliveryTaskManager
@interface GMTDDeliveryTaskManager : NSObject
Object that manages task creation and updates.
-
This class has no public initializers; obtain this object from the deliveryTaskManager
property of the GMTDDeliveryDriverAPI
object.
Declaration
Objective-C
- (null_unspecified instancetype)init;
-
Updates a task with the given request.
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.
Parameters
request
|
The request to create the task.
|
completion
|
A block to be executed when the request is completed.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003eGMTDDeliveryTaskManager manages the creation and updating of tasks.\u003c/p\u003e\n"],["\u003cp\u003eThe GMTDDeliveryTaskManager object cannot be directly initialized and must be obtained from the \u003ccode\u003edeliveryTaskManager\u003c/code\u003e property of the GMTDDeliveryDriverAPI object.\u003c/p\u003e\n"],["\u003cp\u003eTasks are updated using the \u003ccode\u003eupdateTaskWithRequest:completion:\u003c/code\u003e method, which requires a GMTDUpdateDeliveryTaskRequest and a completion handler.\u003c/p\u003e\n"],["\u003cp\u003eNew tasks are created using the \u003ccode\u003ecreateTaskWithRequest:completion:\u003c/code\u003e method, requiring a GMTDCreateDeliveryTaskRequest and a completion handler.\u003c/p\u003e\n"]]],[],null,["# GoogleRidesharingDriver Framework Reference\n\nGMTDDeliveryTaskManager\n=======================\n\n @interface GMTDDeliveryTaskManager : NSObject\n\nObject that manages task creation and updates.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMTDDeliveryTaskManager(im)init)\n\n `\n ` \n Unavailable \n This class has no public initializers; obtain this object from the `deliveryTaskManager`\n property of the [GMTDDeliveryDriverAPI](../Classes/GMTDDeliveryDriverAPI.html) object. \n\n #### Declaration\n\n Objective-C \n\n - (null_unspecified instancetype)init;\n\n- `\n ``\n ``\n `\n\n ### [-updateTaskWithRequest:completion:](#/c:objc(cs)GMTDDeliveryTaskManager(im)updateTaskWithRequest:completion:)\n\n `\n ` \n Updates a task with the given request. \n\n #### Declaration\n\n Swift \n\n func updateTask(with request: ../Classes/GMTDUpdateDeliveryTaskRequest.html) async throws -\u003e ../Classes/GMTDDeliveryTask.html\n\n Objective-C \n\n - (void)updateTaskWithRequest:(nonnull ../Classes/GMTDUpdateDeliveryTaskRequest.html *)request\n completion:(nonnull ../Type-Definitions/GMTDDeliveryTaskManagerCompletionHandler.html)\n completion;\n\n #### Parameters\n\n |--------------------|-------------------------------------------------------|\n | ` `*request*` ` | The request to update the task. |\n | ` `*completion*` ` | A block to be executed when the request is completed. |\n\n- `\n ``\n ``\n `\n\n ### [-createTaskWithRequest:completion:](#/c:objc(cs)GMTDDeliveryTaskManager(im)createTaskWithRequest:completion:)\n\n `\n ` \n Creates a task with the given request. \n\n #### Declaration\n\n Swift \n\n func createTask(with request: ../Classes/GMTDCreateDeliveryTaskRequest.html) async throws -\u003e ../Classes/GMTDDeliveryTask.html\n\n Objective-C \n\n - (void)createTaskWithRequest:(nonnull ../Classes/GMTDCreateDeliveryTaskRequest.html *)request\n completion:(nonnull ../Type-Definitions/GMTDDeliveryTaskManagerCompletionHandler.html)\n completion;\n\n #### Parameters\n\n |--------------------|-------------------------------------------------------|\n | ` `*request*` ` | The request to create the task. |\n | ` `*completion*` ` | A block to be executed when the request is completed. |"]]