AI-generated Key Takeaways
-
The
GMTDDeliveryDriverAPIclass is the central entry point for accessing core components within the Delivery vertical. -
Several immutable objects are defined for managing delivery operations, including
GMTDCreateDeliveryTaskRequest,GMTDDeliveryTask,GMTDUpdateDeliveryTaskRequest, andGMTDTaskInfo. -
Classes like
GMTDDeliveryVehicleandGMTDDeliveryVehicleManagerare available for managing delivery vehicles within the system. -
The
GMTDVehicleReporterandGMTDDeliveryVehicleReporterclasses handle sending information to the Fleet Engine backend. -
GMTSImmutableDataserves as a base class for immutable data objects, ensuring they adhere to theisEqual:andhashmethods of theNSObjectprotocol.
Classes
The following classes are available globally.
-
An immutable object representing the context needed to fetch an auth token.
Declaration
Swift
class GMTDAuthorizationContext : GMTSImmutableDataObjective-C
@interface GMTDAuthorizationContext : GMTSImmutableData -
An immutable object representing a request to create a delivery task.
Declaration
Swift
class GMTDCreateDeliveryTaskRequest : GMTSImmutableDataObjective-C
@interface GMTDCreateDeliveryTaskRequest : GMTSImmutableData -
A class that provides access to all the core components and serves as the entry point for the Delivery vertical.
Declaration
Swift
class GMTDDeliveryDriverAPI : GMTDDriverAPIObjective-C
@interface GMTDDeliveryDriverAPI : GMTDDriverAPI -
Object that manages task creation and updates.
Declaration
Swift
class GMTDDeliveryTaskManager : NSObjectObjective-C
@interface GMTDDeliveryTaskManager : NSObject -
An immutable object representing a delivery vehicle.
Declaration
Swift
class GMTDDeliveryVehicle : GMTSImmutableDataObjective-C
@interface GMTDDeliveryVehicle : GMTSImmutableData -
Class used to create and retrieve delivery vehicles from Fleet Engine
Declaration
Swift
class GMTDDeliveryVehicleManager : NSObjectObjective-C
@interface GMTDDeliveryVehicleManager : NSObject -
Object for sending information to the Fleet Engine backend. Used for deliveries.
Declaration
Swift
class GMTDDeliveryVehicleReporter : GMTDVehicleReporterObjective-C
@interface GMTDDeliveryVehicleReporter : GMTDVehicleReporter -
An abstract superclass for the Driver SDK API classes.
Declaration
Swift
class GMTDDriverAPI : NSObject, NSCopyingObjective-C
@interface GMTDDriverAPI : NSObject <NSCopying> -
An object containing the dependencies needed to construct a
GMTDDriverApiinstance.Declaration
Swift
class GMTDDriverContext : GMTSImmutableDataObjective-C
@interface GMTDDriverContext : GMTSImmutableData -
An immutable object representing a task that will be completed at a vehicle stop.
Declaration
Swift
class GMTDTaskInfo : GMTSImmutableDataObjective-C
@interface GMTDTaskInfo : GMTSImmutableData -
An immutable object representing a request to update a delivery task.
Declaration
Swift
class GMTDUpdateDeliveryTaskRequest : GMTSImmutableDataObjective-C
@interface GMTDUpdateDeliveryTaskRequest : GMTSImmutableData -
Object for sending information to the Fleet Engine backend.
Use this class only from the main thread.
Declaration
Swift
class GMTDVehicleReporter : NSObject, GMSNavigatorListener, GMSRoadSnappedLocationProviderListenerObjective-C
@interface GMTDVehicleReporter : NSObject <GMSNavigatorListener, GMSRoadSnappedLocationProviderListener> -
An object representing a vehicle stop for deliveries.
Declaration
Swift
class GMTDVehicleStop : GMTSImmutableDataObjective-C
@interface GMTDVehicleStop : GMTSImmutableData -
Object representing a vehicle update.
Declaration
Swift
class GMTDVehicleUpdate : NSObject, NSCopyingObjective-C
@interface GMTDVehicleUpdate : NSObject <NSCopying> -
A base class of immutable data, subclass must implement the
isEqual:andhashof theNSObjectprotocol.Declaration
Swift
class GMTSImmutableData : NSObject, NSCopying, NSSecureCodingObjective-C
@interface GMTSImmutableData : NSObject <NSCopying, NSSecureCoding> -
An immutable object representing a unit of work that is completed at a vehicle stop.
Declaration
Swift
class GMTSTask : GMTSImmutableDataObjective-C
@interface GMTSTask : GMTSImmutableData