DriverContext provides the dependencies needed to construct a DriverApi instance.
Nested Class Summary
class | DriverContext.Builder | Builder for DriverContext. | |
interface | DriverContext.StatusListener | Listener for status updates. |
Public Constructor Summary
Public Method Summary
static DriverContext.Builder | |
abstract Application |
getApplication()
Returns the application context.
|
abstract AuthTokenContext.AuthTokenFactory |
getAuthTokenFactory()
Returns the factory for generating JWT for the given call context.
|
String |
getFleetEngineServiceAddress()
Returns the FleetEngine service address defined in the Android Manifest or
falls back to the default value.
|
abstract Navigator |
getNavigator()
Returns the initialized Navigator singleton.
|
abstract String |
getProviderId()
Returns the unique identifier for this provider.
|
abstract RoadSnappedLocationProvider |
getRoadSnappedLocationProvider()
Returns the RoadSnappedLocationProvider from the NavigationApi.
|
abstract DriverContext.StatusListener |
getStatusListener()
Returns the optional listener that returns status errors from location updates.
|
abstract String |
getVehicleId()
Returns the unique identifier for this vehicle for this provider.
|
abstract DriverContext.Builder |
toBuilder()
Returns new Builder instance set with current DriverContext state.
|
Inherited Method Summary
Public Constructors
public DriverContext ()
Public Methods
public static DriverContext.Builder builder (Application application)
Returns new default Builder instance.
public abstract Application getApplication ()
Returns the application context.
public abstract AuthTokenContext.AuthTokenFactory getAuthTokenFactory ()
Returns the factory for generating JWT for the given call context.
public String getFleetEngineServiceAddress ()
Returns the FleetEngine service address defined in the Android Manifest or falls back to the default value.
public abstract Navigator getNavigator ()
Returns the initialized Navigator singleton.
public abstract String getProviderId ()
Returns the unique identifier for this provider.
public abstract RoadSnappedLocationProvider getRoadSnappedLocationProvider ()
Returns the RoadSnappedLocationProvider from the NavigationApi.
public abstract DriverContext.StatusListener getStatusListener ()
Returns the optional listener that returns status errors from location updates.
public abstract String getVehicleId ()
Returns the unique identifier for this vehicle for this provider.
public abstract DriverContext.Builder toBuilder ()
Returns new Builder instance set with current DriverContext state.