GoogleRidesharingDriver Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTDDeliveryDriverAPI
A class that provides access to all the core components and serves as the entry
point for the Delivery vertical.
-
The vehicle reporter used to send updates to the Fleet Engine backend.
-
The task manager used to create or update delivery tasks.
-
The vehicle manager used to create or get delivery vehicles.
-
Initializes the API.
After initialization, driver APIs from different verticals should not be used
until this instance has been deallocated.
Using driver API instances from multiple verticals in the same SDK session
can lead to unexpected behavior.
Declaration
Objective-C
- (nullable instancetype)initWithDriverContext:
(nonnull GMTDDriverContext *)driverContext;
Parameters
driverContext
|
An object containing the necessary information for initialization.
|
Return Value
An instance of the API.
-
Declaration
Objective-C
- (null_unspecified instancetype)init;
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-01-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMTDDeliveryDriverAPI\u003c/code\u003e serves as the primary entry point for the Delivery vertical, providing access to its core components.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003evehicleReporter\u003c/code\u003e property enables sending updates to the Fleet Engine backend.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edeliveryTaskManager\u003c/code\u003e property allows for the creation and updating of delivery tasks.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edeliveryVehicleManager\u003c/code\u003e property facilitates the creation and retrieval of delivery vehicles.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003einitWithDriverContext:\u003c/code\u003e method is the designated initializer for the API, requiring a \u003ccode\u003edriverContext\u003c/code\u003e object and ensuring that only one vertical is used in an SDK session to avoid unexpected behavior.\u003c/p\u003e\n"]]],[],null,["GMTDDeliveryDriverAPI \n\n @interface GMTDDeliveryDriverAPI : ../Classes/GMTDDriverAPI.html\n\nA class that provides access to all the core components and serves as the entry\npoint for the Delivery vertical.\n- `\n ``\n ``\n `\n\n [vehicleReporter](#/c:objc(cs)GMTDDeliveryDriverAPI(py)vehicleReporter)`\n ` \n The vehicle reporter used to send updates to the Fleet Engine backend. \n\n Declaration \n Swift \n\n var vehicleReporter: ../Classes/GMTDDeliveryVehicleReporter.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Classes/GMTDDeliveryVehicleReporter.html *_Nonnull vehicleReporter;\n\n- `\n ``\n ``\n `\n\n [deliveryTaskManager](#/c:objc(cs)GMTDDeliveryDriverAPI(py)deliveryTaskManager)`\n ` \n The task manager used to create or update delivery tasks. \n\n Declaration \n Swift \n\n var deliveryTaskManager: ../Classes/GMTDDeliveryTaskManager.html? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Classes/GMTDDeliveryTaskManager.html *deliveryTaskManager;\n\n- `\n ``\n ``\n `\n\n [deliveryVehicleManager](#/c:objc(cs)GMTDDeliveryDriverAPI(py)deliveryVehicleManager)`\n ` \n The vehicle manager used to create or get delivery vehicles. \n\n Declaration \n Swift \n\n var deliveryVehicleManager: ../Classes/GMTDDeliveryVehicleManager.html? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Classes/GMTDDeliveryVehicleManager.html *deliveryVehicleManager;\n\n- `\n ``\n ``\n `\n\n [-initWithDriverContext:](#/c:objc(cs)GMTDDeliveryDriverAPI(im)initWithDriverContext:)`\n ` \n Initializes the API.\n\n After initialization, driver APIs from different verticals should not be used\n until this instance has been deallocated.\n Using driver API instances from multiple verticals in the same SDK session\n can lead to unexpected behavior. \n\n Declaration \n Swift \n\n init?(driverContext: ../Classes/GMTDDriverContext.html)\n\n Objective-C \n\n - (nullable instancetype)initWithDriverContext:\n (nonnull ../Classes/GMTDDriverContext.html *)driverContext;\n\n Parameters\n\n |-----------------------|--------------------------------------------------------------------|\n | ` `*driverContext*` ` | An object containing the necessary information for initialization. |\n\n Return Value\n\n An instance of the API.\n- `\n ``\n ``\n `\n\n [-init](#/c:objc(cs)GMTDDeliveryDriverAPI(im)init)`\n ` \n Unavailable \n Use [-initWithDriverContext:](../Classes/GMTDDeliveryDriverAPI.html#/c:objc(cs)GMTDDeliveryDriverAPI(im)initWithDriverContext:) instead. \n\n Declaration \n Objective-C \n\n - (null_unspecified instancetype)init;"]]