TollCard

public final class TollCard
extends Object

java.lang.Object
   ↳ androidx.car.app.hardware.info.TollCard


Information about toll card capabilities in a car.

Summary

Nested classes

class TollCard.Builder

A builder of TollCard

Constants

int TOLLCARD_STATE_INVALID

Toll card state invalid.

int TOLLCARD_STATE_NOT_INSERTED

Toll card state is not inserted.

int TOLLCARD_STATE_UNKNOWN

Toll card state is unknown.

int TOLLCARD_STATE_VALID

Toll card state is valid.

Public methods

boolean equals(Object other)
CarValue<Integer> getCardState()

Returns the toll card state if available.

int hashCode()
String toString()

Inherited methods

Constants

TOLLCARD_STATE_INVALID

public static final int TOLLCARD_STATE_INVALID

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.

Constant Value: 2 (0x00000002)

TOLLCARD_STATE_NOT_INSERTED