DriverContext.Builder

public static abstract class DriverContext.Builder extends Object

Builder for DriverContext.

Public Method Summary

DriverContext
build()
Returns new DriverContext instance with the state set by the Builder.
abstract DriverContext.Builder
setApplication(Application application)
Sets the application context.
abstract DriverContext.Builder
setAuthTokenFactory(AuthTokenContext.AuthTokenFactory authTokenFactory)
Sets the factory for generating JWT for the given call context.
abstract DriverContext.Builder
setNavigator(Navigator navigator)
Sets the initialized Navigator singleton.
abstract DriverContext.Builder
setProviderId(String providerId)
Sets the unique identifier for this provider.
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
setVehicleId(String vehicleId)
Sets the unique identifier for this vehicle for this provider.

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 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.

public abstract DriverContext.Builder setVehicleId (String vehicleId)

Sets the unique identifier for this vehicle for this provider.