Interface VehiclesManager


public interface VehiclesManager
Vehicles manager
Since:
1.0
  • Method Details

    • getVehicles

      @NonNull List<VehicleParams> getVehicles(@Nullable Vehicle.VehicleType type)
      Get all defined vehicles of given type
      Parameters:
      type - type of vehicle ('null' for all vehicle types)
      Returns:
      list of all defined vehicles of requested type
      Since:
      1.0
    • getActiveVehicleProfile

      @Nullable VehicleParams getActiveVehicleProfile()
      Get active vehicle profile
      Returns:
      current vehicle profile
      Since:
      1.0
    • setActiveVehicleProfile

      @NonNull VehiclesManager.SetActiveVehicleProfileResult setActiveVehicleProfile(@NonNull String vehicleId)
      Set active vehicle profile identified by vehicle ID
      Parameters:
      vehicleId - existing vehicle ID
      Returns:
      success or reason of failure
      Since:
      1.0