Skip to main content

Set

Use setXxx to change vehicle states and configuration values. Failures are delivered through onFailed. For obtaining a domain object, see Obtaining a domain object. For detailed API specifications, see API Reference.

The following example assumes that the Vehicle instance (vehicle) has already been initialized.

val door = vehicle.getDoor()
door.setDoorPosition(
area = DoorArea(DoorValue.ROW_1_LEFT),
value = 1, // Integer type
onFailed = { e: Exception ->
// do something
}
)