GMTDDriverContext Class Reference

GMTDDriverContext Class Reference

Overview

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

Inherits GMTSImmutableData.

Public Member Functions

(instancetype) - initWithAccessTokenProvider:providerID:vehicleID:navigator:
 Initializes the Driver Context object.

Properties

id< GMTDAuthorizationaccessTokenProvider
 Object that provides access tokens for interacting with the Fleet Engine backend.
NSString * providerID
 The ID for the Google Cloud project associated with the provider.
GMTDFleetEngineIDStringvehicleID
 The ID associated with the vehicle.
GMSNavigator * navigator
 The navigator associated with the GMSMapView.

Member Function Documentation

- (instancetype) initWithAccessTokenProvider: (id< GMTDAuthorization >)  accessTokenProvider
providerID: (NSString *)  providerID
vehicleID: (GMTDFleetEngineIDString *)  vehicleID
navigator: (GMSNavigator *)  navigator 

Initializes the Driver Context object.

Parameters:
accessTokenProviderObject that provides access tokens for interacting with the Fleet Engine backend.
providerIDThe ID for the Google Cloud project associated with the provider.
vehicleIDThe ID associated with the vehicle.
navigatorThe navigator associated with the GMSMapView. Used to track navigation-related changes.
Returns:
An instance of the Driver Context.

Property Documentation

- (id<GMTDAuthorization>) accessTokenProvider [read, assign]

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

- (NSString*) providerID [read, copy]

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

The ID associated with the vehicle.

- (GMSNavigator*) navigator [read, assign]

The navigator associated with the GMSMapView.

Used to track navigation-related changes.