Seats

State

Persons detected

Declaration

getPersonsDetected()

Example

val state:Seats.State
assertTrue(state.personsDetected[0].value?.location == SeatLocation.FRONT_LEFT)
assertTrue(state.personsDetected[0].value?.detected == Detected.DETECTED)
// Person detected on the front-left seat

Seatbelts state

Declaration

getSeatbeltsState()

Example

val state:Seats.State
assertTrue(state.seatbeltsState[0].value?.location == SeatLocation.FRONT_LEFT)
assertTrue(state.seatbeltsState[0].value?.fastenedState == SeatbeltState.FastenedState.FASTENED)
// Seatbelt fastened for the front-left seat

Getters

Get Seats property availability information

Declaration

public GetStateAvailability()
public GetStateAvailability(byte... propertyIdentifiers)

Example

// get all property availabilities
val getAvailability = GetStateAvailability()
// get personDetected and seatbeltState property availabilities
val getAvailabilityProperties = GetStateAvailability(0x02, 0x03)

Get Seats properties

Declaration

public GetState()
public GetState(byte... propertyIdentifiers)            

Example

// get all properties
val getState = GetState()
// get personDetected and seatbeltState properties
val getStateProperties = GetState(0x02, 0x03)