TollCard


@CarProtocol
@RequiresCarApi(value = 3)
class TollCard


Information about toll card capabilities in a car.

Summary

Nested types

A builder of TollCard.

Constants

const Int

Toll card state invalid.

const Int

Toll card state is not inserted.

const Int

Toll card state is unknown.

const Int

Toll card state is valid.

Public functions

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

Returns the toll card state if available.

Int
String

Constants

TOLLCARD_STATE_INVALID

Added in 1.1.0
const val TOLLCARD_STATE_INVALID = 2: Int

Toll card state invalid.

On some vehicles this may be that the toll card is inserted but not valid while other vehicles might not have a toll card inserted.

TOLLCARD_STATE_NOT_INSERTED

Added in 1.1.0
const val TOLLCARD_STATE_NOT_INSERTED = 3: Int

Toll card state is not inserted.

Will be returned if the car hardware is able to detect that the card is not inserted.

TOLLCARD_STATE_UNKNOWN

Added in 1.1.0
const val TOLLCARD_STATE_UNKNOWN = 0: Int

Toll card state is unknown.

TOLLCARD_STATE_VALID

Added in 1.1.0
const val TOLLCARD_STATE_VALID = 1: Int

Toll card state is valid.

Public functions

equals

fun equals(other: Any?): Boolean

getCardState

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

Returns the toll card state if available.

hashCode

fun hashCode(): Int

toString

fun toString(): String