com.google.android.libraries.mapsplatform.transportation.consumer.view

  • ConsumerController provides ridesharing controls and is linked with ConsumerMapFragment for managing features.

  • ConsumerGoogleMap and ConsumerMapFragment offer customized map views influenced by the current session's appearance, with the former acting as a proxy to the standard Google Maps Android API.

  • ConsumerMapStyle enables UI element style customization within the ConsumerMapFragment.

  • Several callback classes like OnConsumerMarkerClickCallback, OnProjectedRouteUpdateCallback, and ConsumerMapReadyCallback handle interactions and updates within the map environment.

  • Direct use of getMapAsync() is replaced by ConsumerMapView#getConsumerMapAsync(ConsumerMapReadyCallback) to retrieve the map, as indicated by UnsupportedGetMapAsyncException.

Interfaces

ConsumerController Controls ridesharing features associated with ConsumerMapFragment
ConsumerGoogleMap Provides access to Google Maps Android API as a proxy to the underlying GoogleMap which is the entry point for all methods related to the map. 
ConsumerMapStyle Contains the methods for customizing the style of UI elements managed by the ConsumerMapFragment

Classes

ConsumerController.OnConsumerMarkerClickCallback Callback invoked when an SDK marker is clicked or tapped. 
ConsumerController.OnProjectedRouteUpdateCallback Callback invoked when the vehicle marker moves along the projected route polyline. 
ConsumerGoogleMap.ConsumerMapReadyCallback Callback to get a handle to ConsumerGoogleMap
ConsumerMapFragment Custom map view that changes its appearance based on the currently shown Session
ConsumerMapView A custom map view that changes its appearance based on the currently shown Session

Exceptions

UnsupportedGetMapAsyncException Indicates that getMapAsync() is not supported, and instead ConsumerMapView#getConsumerMapAsync(ConsumerMapReadyCallback) should be called.