Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

Maneuver

class Maneuver : VersionedParcelable
kotlin.Any
   ↳ androidx.car.cluster.navigation.Maneuver

Information about a maneuver that the driver will be required to perform.

Summary

Nested classes

Builder for creating a Maneuver

Possible maneuver types.

Public methods

Boolean
equals(other: Any?)

ImageReference?

Returns a reference to an image representing this maneuver, or null if image representation is not available.

Int

Returns the roundabout exit number, starting from 1 to designate the first exit after joining the roundabout, and increasing in circulation order.

Maneuver.Type

Returns the maneuver type.

Int

String

Public methods

equals

fun equals(other: Any?): Boolean

getIcon

@Nullable fun getIcon(): ImageReference?

Returns a reference to an image representing this maneuver, or null if image representation is not available. This image is optimized to be displayed in a square canvas (aspect ratio of 1:1).

getRoundaboutExitNumber

fun getRoundaboutExitNumber(): Int

Returns the roundabout exit number, starting from 1 to designate the first exit after joining the roundabout, and increasing in circulation order. Only relevant if getType() is Type#ROUNDABOUT_EXIT or any variation of ROUNDABOUT_ENTER_AND_EXIT.

For example, if the driver is joining a counter-clockwise roundabout with 4 exits, then the exit to the right would be exit #1, the one straight ahead would be exit #2, the one to the left would be exit #3 and the one used by the driver to join the roundabout would be exit #4.

getType

@NonNull fun getType(): Maneuver.Type

Returns the maneuver type.

hashCode

fun hashCode(): Int

toString

fun toString(): String