CabinTemperatureProfile

@ExperimentalCarApi
public final class CabinTemperatureProfile


Container class for information about the FEATURE_CABIN_TEMPERATURE feature such as supported min/max values and increments for the feature.

Summary

Nested types

A builder for CabinTemperatureProfile.

Public methods

@NonNull Map<Set<CarZone>, Pair<FloatFloat>>

Returns a pair of supported min/max range values in Celsius for the feature mapped to the set of car zones.

float

Returns the increment number by which the Celsius values in the range differ.

float

Returns the increment number by which the Fahrenheit values in the range differ.

@NonNull Pair<FloatFloat>

Returns a pair of min and max range for the values of the property in Celsius.

@NonNull Pair<FloatFloat>

Returns a pair of min and max range for the values of the property in Fahrenheit.

boolean

Reports whether the min/max Celsius mapped to the car zones is available or not.

boolean

Reports whether the increment value in Celsius is available or not.

boolean

Reports whether the increment value in Fahrenheit is available or not.

boolean

Reports whether the min/max Celsius from the config array is available or not.

boolean

Reports whether the min/max Fahrenheit from the config array is available or not.

Public methods

getCarZoneSetsToCabinCelsiusTemperatureRanges

Added in 1.3.0
public @NonNull Map<Set<CarZone>, Pair<FloatFloat>> getCarZoneSetsToCabinCelsiusTemperatureRanges()

Returns a pair of supported min/max range values in Celsius for the feature mapped to the set of car zones.

The values that can be regulated together for a set of car zones are combined together.

getCelsiusSupportedIncrement

Added in 1.3.0
public float getCelsiusSupportedIncrement()

Returns the increment number by which the Celsius values in the range differ.

For example, for the range [16.0, 28.0] and increment 0.5 would mean possible values like [16.0, 16.5, 17.0, ...., 27.5, 28.0].

throws IllegalStateException if the values of the increment is not present.

getFahrenheitSupportedIncrement

Added in 1.3.0
public float getFahrenheitSupportedIncrement()

Returns the increment number by which the Fahrenheit values in the range differ.

For example, for the range [60.5, 82.5] and increment 1.0 would mean possible values like [60.5, 61.5, 62.0, ...., 81.5, 82.5].

throws IllegalStateException if the values of the increment is not present.

getSupportedMinMaxCelsiusRange

Added in 1.3.0
public @NonNull Pair<FloatFloatgetSupportedMinMaxCelsiusRange()

Returns a pair of min and max range for the values of the property in Celsius.

getSupportedMinMaxFahrenheitRange

Added in 1.3.0
public @NonNull Pair<FloatFloatgetSupportedMinMaxFahrenheitRange()

Returns a pair of min and max range for the values of the property in Fahrenheit.

hasCarZoneSetsToCabinCelsiusTemperatureRanges

Added in 1.3.0
public boolean hasCarZoneSetsToCabinCelsiusTemperatureRanges()

Reports whether the min/max Celsius mapped to the car zones is available or not.

hasCelsiusSupportedIncrement

Added in 1.3.0
public boolean hasCelsiusSupportedIncrement()

Reports whether the increment value in Celsius is available or not.

hasFahrenheitSupportedIncrement

Added in 1.3.0
public boolean hasFahrenheitSupportedIncrement()

Reports whether the increment value in Fahrenheit is available or not.

hasSupportedMinMaxCelsiusRange

Added in 1.3.0
public boolean hasSupportedMinMaxCelsiusRange()

Reports whether the min/max Celsius from the config array is available or not.

hasSupportedMinMaxFahrenheitRange

Added in 1.3.0
public boolean hasSupportedMinMaxFahrenheitRange()

Reports whether the min/max Fahrenheit from the config array is available or not.