BleAction
Enum Class: BleAction
Represents action that can be instructed to peripheral
Properties
name: String
Represents as a callback to show the result from the BleTerminal process.
ordinal: Int
Represents current connected terminalId.
Available Actions
LOCK
LOCK
Send lock action to terminal
UNLOCK
UNLOCK
Send unlock action to terminal
UNLOCK_NOKEYFOB
UNLOCK_NOKEYFOB
Send unlock with no key fob action to terminal
HEADLIGHT
HEADLIGHT
Send headlight action to terminal
HORN
HORN
Send horn action to terminal
GET_LOCK_STATE
GET_LOCK_STATE
Get the current state of vehicle's lock status - possible value - Lock/Unlock
VEHICLE_GET_CONFIG
VEHICLE_GET_CONFIG
Get the current state of vehicle's status
VEHICLE_GET_STATUS
VEHICLE_GET_STATUS
Get the current state of vehicle's ignition status - possible value - on/off
Functions
valueOf(value: String): BleAction
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Throws IllegalArgumentException if this enum type has no constant with the specified name
values(): Array<BleAction>
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
Action Categories
Control Actions
LOCK- Lock the vehicle doorsUNLOCK- Unlock the vehicle doorsUNLOCK_NOKEYFOB- Unlock without requiring key fob presence
Signaling Actions
HEADLIGHT- Flash vehicle headlightsHORN- Sound vehicle horn
Status Actions
GET_LOCK_STATE- Retrieve current lock/unlock statusVEHICLE_GET_CONFIG- Get comprehensive vehicle statisticsVEHICLE_GET_STATUS- Get vehicle ignition and status information
See Also
- BleTerminal - For sending actions
- BleListener - For handling action results
- LockState - For lock state values