ActiveGuidanceUiState

public interface ActiveGuidanceUiState implements UiState

Interface for optional UI elements provided to the layout delegate for Active Guidance state.

Public Method Summary

abstract List<NavigationUiButton>
getActiveGuidanceButtons()
Returns a list of buttons that you can add to the UI during the Active Guidance state.
abstract View
getEtaCard()
Gets the ETA card UI element, which displays the estimated arrival time for the current destination.
abstract View
getSpeedWidget()
Gets the Speed Widget UI element, which displays the current speed limit and speedometer data when they are available.
abstract View
getTripProgressBar()
Gets the Trip Progress Bar UI element, which displays a vertical progress bar showing an overview of the current trip, including the user's current position with respect to the start and end of the trip, the elapsed route, and traffic state for the upcoming portion of the trip.
abstract View
getTurnCard()
Gets the turn card UI element, which displays upcoming directions and guidance.

Inherited Method Summary

Public Methods

public abstract List<NavigationUiButton> getActiveGuidanceButtons ()

Returns a list of buttons that you can add to the UI during the Active Guidance state. Some of these buttons may also be available in other states.

public abstract View getEtaCard ()

Gets the ETA card UI element, which displays the estimated arrival time for the current destination.

This element spans the full width of the map by default, and spans half the map in wide mode. The height of this element is fixed. It is recommended that you place this UI element on the bottom start side of the map.

public abstract View getSpeedWidget ()

Gets the Speed Widget UI element, which displays the current speed limit and speedometer data when they are available.

public abstract View getTripProgressBar ()

Gets the Trip Progress Bar UI element, which displays a vertical progress bar showing an overview of the current trip, including the user's current position with respect to the start and end of the trip, the elapsed route, and traffic state for the upcoming portion of the trip.

This element has a fixed width. Its height is set to MATCH_PARENT so that it dynamically fills the size of its parent view.

public abstract View getTurnCard ()

Gets the turn card UI element, which displays upcoming directions and guidance.

This element spans the full width of the map by default, and spans half the map in wide mode. The height of this element changes frequently. To avoid a choppy visual experience, it is recommended that you don't constrain other UI elements to its lower edge, and that you place this UI element on the top start side of the map.