GoogleRidesharingDriver Framework Reference

GMTDRidesharingDriverAPI

@interface GMTDRidesharingDriverAPI : GMTDDriverAPI

A class that provide access to all the core components and serves as the entry point for the ridesharing use case.

  • The vehicle reporter used to send updates to the Fleet Engine backend.

    Declaration

    Swift

    var vehicleReporter: GMTDVehicleReporter { get }

    Objective-C

    @property (nonatomic, readonly) GMTDVehicleReporter *_Nonnull vehicleReporter;
  • 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

    Use initWithDriverContext: instead.

    Declaration

    Objective-C

    - (null_unspecified instancetype)init;