# GoogleRidesharingDriver Framework Reference

# GMTDRidesharingDriverAPI

    @interface GMTDRidesharingDriverAPI : https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDDriverAPI.html

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


  ### [vehicleReporter](https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDRidesharingDriverAPI#/c:objc(cs)GMTDRidesharingDriverAPI(py)vehicleReporter)


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

  #### Declaration

  Swift

      var vehicleReporter: https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDVehicleReporter.html { get }

  Objective-C

      @property (nonatomic, readonly) https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDVehicleReporter.html *_Nonnull vehicleReporter;

- `


  ### [-initWithDriverContext:](https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDRidesharingDriverAPI#/c:objc(cs)GMTDRidesharingDriverAPI(im)initWithDriverContext:)


  ` 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: https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDDriverContext.html)

  Objective-C

      - (nullable instancetype)initWithDriverContext:
          (nonnull https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDDriverContext.html *)driverContext;

  #### Parameters

  |---|---|
  | ` driverContext ` | An object containing the necessary information for initialization. |

  #### Return Value

  An instance of the API.
- `


  ### [-init](https://developers.google.com/maps/documentation/mobility/driver-sdk/on-demand/reference/ios/Classes/GMTDRidesharingDriverAPI#/c:objc(cs)GMTDRidesharingDriverAPI(im)init)


  ` Unavailable
  Use `initWithDriverContext:` instead.

  #### Declaration

  Objective-C

      - (null_unspecified instancetype)init;