Speed

@CarProtocol
@RequiresCarApi(value = 3)
class Speed


Information about the current car speed.

Summary

Nested types

A builder of Speed.

Public functions

Boolean
equals(other: Any?)
CarValue<Float!>

Returns the display speed of the car in meters/second.

CarValue<Float!>

Returns the raw speed of the car in meters/second.

CarValue<Int!>

Returns the units used to display speed from the car settings.

Int
String

Public functions

equals

Added in 1.4.0-rc02
fun equals(other: Any?): Boolean

getDisplaySpeedMetersPerSecond

Added in 1.1.0
fun getDisplaySpeedMetersPerSecond(): CarValue<Float!>

Returns the display speed of the car in meters/second.

Some cars display a slightly slower speed than the actual speed. This is usually displayed on the speedometer.

The value is positive when the vehicle is moving forward, negative when moving backwards and zero when stopped.

getRawSpeedMetersPerSecond

Added in 1.1.0
fun getRawSpeedMetersPerSecond(): CarValue<Float!>

Returns the raw speed of the car in meters/second.

The value is positive when the vehicle is moving forward, negative when moving backwards and zero when stopped.

getSpeedDisplayUnit

Added in 1.1.0
fun getSpeedDisplayUnit(): CarValue<Int!>

Returns the units used to display speed from the car settings.

See CarUnit for valid speed units.

hashCode

Added in 1.4.0-rc02
fun hashCode(): Int

toString

Added in 1.4.0-rc02
fun toString(): String