Builder for DriverContext.
Public Method Summary
DriverContext |
build()
Returns new DriverContext instance with the state set by the Builder.
|
abstract DriverContext.Builder | |
abstract DriverContext.Builder |
setAuthTokenFactory(AuthTokenContext.AuthTokenFactory
authTokenFactory)
Sets the factory for generating JWT for the given call context.
|
abstract DriverContext.Builder |
setDriverStatusListener(DriverContext.DriverStatusListener
driverStatusListener)
Sets the optional listener for status updates.
|
abstract DriverContext.Builder |
setNavigator(Navigator navigator)
Sets the initialized Navigator singleton.
|
abstract DriverContext.Builder | |
abstract DriverContext.Builder |
setRoadSnappedLocationProvider(RoadSnappedLocationProvider provider)
Sets the RoadSnappedLocationProvider from the NavigationApi.
|
abstract DriverContext.Builder |
setStatusListener(DriverContext.StatusListener
statusListener)
Sets the optional listener that returns status errors from location updates.
|
abstract DriverContext.Builder |
Inherited Method Summary
Public Methods
public DriverContext build ()
Returns new DriverContext instance with the state set by the Builder.
Throws
NullPointerException | if any non-nullable values are not set. |
---|
public abstract DriverContext.Builder setApplication (Application application)
Sets the application context.
public abstract DriverContext.Builder setAuthTokenFactory (AuthTokenContext.AuthTokenFactory authTokenFactory)
Sets the factory for generating JWT for the given call context.
public abstract DriverContext.Builder setDriverStatusListener (DriverContext.DriverStatusListener driverStatusListener)
Sets the optional listener for status updates.
public abstract DriverContext.Builder setNavigator (Navigator navigator)
Sets the initialized Navigator singleton.
public abstract DriverContext.Builder setProviderId (String providerId)
Sets the unique identifier for this provider.
public abstract DriverContext.Builder setRoadSnappedLocationProvider (RoadSnappedLocationProvider provider)
Sets the RoadSnappedLocationProvider from the NavigationApi.
public abstract DriverContext.Builder setStatusListener (DriverContext.StatusListener statusListener)
Sets the optional listener that returns status errors from location updates.
Please migrate to
DriverContext.DriverStatusListener
which provides the ability of receiving
the cause of error logs.
Will be removed in the next major release (v6.0).
public abstract DriverContext.Builder setVehicleId (String vehicleId)
Sets the unique identifier for this vehicle for this provider.