RoutingInfo

public final class RoutingInfo
extends Object implements NavigationTemplate.NavigationInfo

java.lang.Object
   ↳ androidx.car.app.navigation.model.RoutingInfo


Represents routing information that can be shown in the NavigationTemplate during navigation

Summary

Nested classes

class RoutingInfo.Builder

A builder of RoutingInfo

Public methods

boolean equals(Object other)
Distance getCurrentDistance()

Returns the current distance to display to the user or null if not set.

Step getCurrentStep()

Returns the current step to display to the user or null if not set.

CarIcon getJunctionImage()

Returns an image for a junction of the maneuver or null if not set.

Step getNextStep()
int hashCode()
boolean isLoading()

Returns whether the routing info is in a loading state.

String toString()

Inherited methods

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getCurrentDistance

public Distance getCurrentDistance ()

Returns the current distance to display to the user or null if not set.

Returns
Distance

getCurrentStep

public Step getCurrentStep ()

Returns the current step to display to the user or null if not set.

Returns
Step

getJunctionImage

public CarIcon getJunctionImage ()

Returns an image for a junction of the maneuver or null if not set.

Returns
CarIcon

getNextStep

public Step getNextStep ()

Returns
Step

hashCode

public int hashCode ()

Returns
int

isLoading

public boolean isLoading ()

Returns whether the routing info is in a loading state.

Returns
boolean

toString

public String toString ()

Returns
String