# GMTDDriverContext

    @interface GMTDDriverContext : https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTSImmutableData.html

An object containing the dependencies needed to construct a `GMTDDriverApi` instance.
- `


  ### [accessTokenProvider](https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDDriverContext#/c:objc(cs)GMTDDriverContext(py)accessTokenProvider)


  ` Object that provides access tokens for interacting with the Fleet Engine backend.

  #### Declaration

  Swift

      var accessTokenProvider: any https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Protocols/GMTDAuthorization.html { get }

  Objective-C

      @property (nonatomic, readonly) id<https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Protocols/GMTDAuthorization.html> _Nonnull accessTokenProvider;

- `


  ### [providerID](https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDDriverContext#/c:objc(cs)GMTDDriverContext(py)providerID)


  ` The ID for the Google Cloud project associated with the provider.

  #### Declaration

  Swift

      var providerID: String { get }

  Objective-C

      @property (nonatomic, copy, readonly) NSString *_Nonnull providerID;

- `


  ### [vehicleID](https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDDriverContext#/c:objc(cs)GMTDDriverContext(py)vehicleID)


  ` The ID associated with the vehicle.

  #### Declaration

  Swift

      var vehicleID: String { get }

  Objective-C

      @property (nonatomic, copy, readonly) https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Type-Definitions/GMTDFleetEngineIDString.html *_Nonnull vehicleID;

- `


  ### [navigator](https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDDriverContext#/c:objc(cs)GMTDDriverContext(py)navigator)


  ` The navigator associated with the `GMSMapView`. Used to track navigation-related changes.

  #### Declaration

  Swift

      var navigator: GMSNavigator { get }

  Objective-C

      @property (nonatomic, readonly) GMSNavigator *_Nonnull navigator;

- `


  ### [-initWithAccessTokenProvider:providerID:vehicleID:navigator:](https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDDriverContext#/c:objc(cs)GMTDDriverContext(im)initWithAccessTokenProvider:providerID:vehicleID:navigator:)


  ` Initializes the Driver Context object.

  #### Declaration

  Swift

      init(accessTokenProvider: any https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Protocols/GMTDAuthorization.html, providerID: String, vehicleID: String, navigator: GMSNavigator)

  Objective-C

      - (nonnull instancetype)
          initWithAccessTokenProvider:
              (nonnull id<https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Protocols/GMTDAuthorization.html>)accessTokenProvider
                           providerID:(nonnull NSString *)providerID
                            vehicleID:(nonnull https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Type-Definitions/GMTDFleetEngineIDString.html *)vehicleID
                            navigator:(nonnull GMSNavigator *)navigator;

  #### Parameters

  |---|---|
  | ` accessTokenProvider ` | Object that provides access tokens for interacting with the Fleet Engine backend. |
  | ` providerID ` | The ID for the Google Cloud project associated with the provider. |
  | ` vehicleID ` | The ID associated with the vehicle. |
  | ` navigator ` | The navigator associated with the `GMSMapView.` Used to track navigation-related changes. |

  #### Return Value

  An instance of the Driver Context.
- `


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


  ` Unavailable
  Use `https://developers.google.com/maps/documentation/mobility/driver-sdk/scheduled/reference/ios/Classes/GMTDDriverContext.html#/c:objc(cs)GMTDDriverContext(im)initWithAccessTokenProvider:providerID:vehicleID:navigator:` instead.

  #### Declaration

  Objective-C

      - (nonnull instancetype)init;