TollCard
@CarProtocol
@RequiresCarApi(value = 3)
public final class TollCard
Information about toll card capabilities in a car.
Summary
Nested types |
---|
public final class TollCard.Builder A builder of |
Constants |
|
---|---|
static final int |
Toll card state invalid. |
static final int |
Toll card state is not inserted. |
static final int |
Toll card state is unknown. |
static final int |
Toll card state is valid. |
Public methods |
|
---|---|
boolean |
|
@NonNull CarValue<Integer> |
Returns the toll card state if available. |
int |
hashCode() |
@NonNull String |
toString() |
Constants
TOLLCARD_STATE_INVALID
public static final int TOLLCARD_STATE_INVALID = 2
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
public static final int TOLLCARD_STATE_NOT_INSERTED = 3
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
public static final int TOLLCARD_STATE_UNKNOWN = 0
Toll card state is unknown.
TOLLCARD_STATE_VALID
public static final int TOLLCARD_STATE_VALID = 1
Toll card state is valid.
Public methods
getCardState
public @NonNull CarValue<Integer> getCardState()
Returns the toll card state if available.