GoogleRidesharingDriver Framework Reference

GMTDDeliveryDriverAPI

@interface GMTDDeliveryDriverAPI : GMTDDriverAPI

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.

    Declaration

    Swift

    var vehicleReporter: GMTDDeliveryVehicleReporter { get }

    Objective-C

    @property (nonatomic, readonly) GMTDDeliveryVehicleReporter *_Nonnull vehicleReporter;
  • The task manager used to create or update delivery tasks.

    Declaration

    Swift

    var deliveryTaskManager: GMTDDeliveryTaskManager? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) GMTDDeliveryTaskManager *deliveryTaskManager;
  • The vehicle manager used to create or get delivery vehicles.

    Declaration

    Swift

    var deliveryVehicleManager: GMTDDeliveryVehicleManager? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) GMTDDeliveryVehicleManager *deliveryVehicleManager;
  • 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

    Swift

    init?(driverContext: GMTDDriverContext)

    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.

  • Unavailable

    Declaration

    Objective-C

    - (null_unspecified instancetype)init;