TollCard
@CarProtocol
@RequiresCarApi(value = 3)
class TollCard
Information about toll card capabilities in a car.
Summary
Nested types |
|---|
class TollCard.BuilderA builder of |
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 |
|
CarValue<Int!> |
Returns the toll card state if available. |
Int |
hashCode() |
String |
toString() |
Constants
TOLLCARD_STATE_INVALID
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
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
const val TOLLCARD_STATE_UNKNOWN = 0: Int
Toll card state is unknown.
TOLLCARD_STATE_VALID
const val TOLLCARD_STATE_VALID = 1: Int
Toll card state is valid.
Public functions
getCardState
fun getCardState(): CarValue<Int!>
Returns the toll card state if available.