setVehicle

abstract fun setVehicle(vehicle: Vehicle)

Sets the Vehicle.

Example snippet that creates and sets a car vehicle with combustion engine:

val vehicle = Vehicle.Car(
combustionEngine = CombustionEngine()
)
setVehicle(vehicle)

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

vehicle

Vehicle to be set.