Describes the distance a vehicle can travel with the current level of fuel.
- (nonnull instancetype)initWithType:(nullable SDLFuelType)type
range:(float)range
level:(float)level
levelState:
(nullable SDLComponentVolumeStatus)levelState
capacity:(float)capacity
capacityUnit:(nullable SDLCapacityUnit)capacityUnit;
init(type: SDLFuelType?, range: Float, level: Float, levelState: SDLComponentVolumeStatus?, capacity: Float, capacityUnit: SDLCapacityUnit?)
- type
- @(range)
- @(level)
- levelState
- @(capacity)
- capacityUnit
A SDLFuelRange object
The absolute capacity of this fuel type.
Optional, Float, 0.0 - 1000000.0
@property (nonatomic, strong, nullable) NSNumber<SDLFloat> *capacity;
var capacity: (NSNumber & SDLFloat)? { get set }
The unit of the capacity of this fuel type such as liters for gasoline or kWh for batteries.
@property (nonatomic, strong, nullable) SDLCapacityUnit capacityUnit;
var capacityUnit: SDLCapacityUnit? { get set }
The relative remaining capacity of this fuel type (percentage).
Optional, Float, -6.0 - 1000000.0
@property (nonatomic, strong, nullable) NSNumber<SDLFloat> *level;
var level: (NSNumber & SDLFloat)? { get set }
The fuel level state.
@property (nonatomic, strong, nullable) SDLComponentVolumeStatus levelState;
var levelState: SDLComponentVolumeStatus? { get set }
The vehicle’s fuel type
Optional
@property (nonatomic, strong, nullable) SDLFuelType type;
var type: SDLFuelType? { get set }
The estimate range in KM the vehicle can travel based on fuel level and consumption.
Optional, Float, 0 - 10,000
@property (nonatomic, strong, nullable) NSNumber<SDLFloat> *range;
var range: (NSNumber & SDLFloat)? { get set }