CarClimateStateCallback


@CarProtocol
@RequiresCarApi(value = 5)
@ExperimentalCarApi
public interface CarClimateStateCallback


A callback for the car climate state returned from the car hardware, for example, Fan speed, Temperature etc.

Summary

Public methods

default void
onCabinTemperatureStateAvailable(
    @NonNull CarValue<Float> hvacCabinTemperature
)

Notifies that the climate state for FEATURE_CABIN_TEMPERATURE is updated.

default void

Notifies that the climate state for FEATURE_HVAC_DEFROSTER is updated.

default void
onElectricDefrosterStateAvailable(
    @NonNull CarValue<Boolean> electricDefrosterState
)

Notifies that the climate state for FEATURE_HVAC_ELECTRIC_DEFROSTER is updated.

default void

Notifies that the climate state for FEATURE_FAN_DIRECTION is updated.

default void

Notifies that the climate state for FEATURE_FAN_SPEED is updated.

default void

Notifies that the climate state for FEATURE_HVAC_AC is updated.

default void

Notifies that the climate state for FEATURE_HVAC_AUTO_MODE is updated.

default void
onHvacAutoRecirculationStateAvailable(
    @NonNull CarValue<Boolean> hvacAutoRecirculationState
)

Notifies that the climate state for FEATURE_HVAC_AUTO_RECIRCULATION is updated.

default void

Notifies that the climate state for FEATURE_HVAC_DUAL_MODE is updated.

default void
onHvacMaxAcModeStateAvailable(
    @NonNull CarValue<Boolean> hvacMaxAcModeState
)

Notifies that the climate state for FEATURE_HVAC_MAX_AC is updated.

default void

Notifies that the climate state for FEATURE_HVAC_POWER is updated.

default void
onHvacRecirculationStateAvailable(
    @NonNull CarValue<Boolean> hvacRecirculationState
)

Notifies that the climate state for FEATURE_HVAC_RECIRCULATION is updated.

default void

Notifies that the climate state for FEATURE_HVAC_MAX_DEFROSTER is updated.

default void

Notifies that the climate state for FEATURE_SEAT_TEMPERATURE_LEVEL is updated.

default void

Notifies that the climate state for FEATURE_SEAT_VENTILATION_LEVEL is updated.

default void
onSteeringWheelHeatStateAvailable(
    @NonNull CarValue<Boolean> steeringWheelHeatState
)

Notifies that the climate state for FEATURE_STEERING_WHEEL_HEAT is updated.

Public methods

onCabinTemperatureStateAvailable

Added in 1.3.0
default void onCabinTemperatureStateAvailable(
    @NonNull CarValue<Float> hvacCabinTemperature
)

Notifies that the climate state for FEATURE_CABIN_TEMPERATURE is updated.

Parameters
@NonNull CarValue<Float> hvacCabinTemperature

the updated state of hvacCabinTemperature

onDefrosterStateAvailable

Added in 1.3.0
default void onDefrosterStateAvailable(@NonNull CarValue<Boolean> defrosterState)

Notifies that the climate state for FEATURE_HVAC_DEFROSTER is updated.

Parameters
@NonNull CarValue<Boolean> defrosterState

the updated state of defrosterState

onElectricDefrosterStateAvailable

Added in 1.3.0
default void onElectricDefrosterStateAvailable(
    @NonNull CarValue<Boolean> electricDefrosterState
)

Notifies that the climate state for FEATURE_HVAC_ELECTRIC_DEFROSTER is updated.

Parameters
@NonNull CarValue<Boolean> electricDefrosterState

the updated state of electricDefrosterState

onFanDirectionStateAvailable

Added in 1.3.0
default void onFanDirectionStateAvailable(@NonNull CarValue<Integer> fanDirection)

Notifies that the climate state for FEATURE_FAN_DIRECTION is updated.

Parameters
@NonNull CarValue<Integer> fanDirection

the updated state of fanDirection

onFanSpeedLevelStateAvailable

Added in 1.3.0
default void onFanSpeedLevelStateAvailable(@NonNull CarValue<Integer> fanSpeedLevel)

Notifies that the climate state for FEATURE_FAN_SPEED is updated.

Parameters
@NonNull CarValue<Integer> fanSpeedLevel

the updated state of fanSpeedLevel

onHvacAcStateAvailable

Added in 1.3.0
default void onHvacAcStateAvailable(@NonNull CarValue<Boolean> hvacAcState)

Notifies that the climate state for FEATURE_HVAC_AC is updated.

Parameters
@NonNull CarValue<Boolean> hvacAcState

the updated state of hvacAcState

onHvacAutoModeStateAvailable

Added in 1.3.0
default void onHvacAutoModeStateAvailable(
    @NonNull CarValue<Boolean> hvacAutoModeState
)

Notifies that the climate state for FEATURE_HVAC_AUTO_MODE is updated.

Parameters
@NonNull CarValue<Boolean> hvacAutoModeState

the updated state of hvacAutoModeState

onHvacAutoRecirculationStateAvailable

Added in 1.3.0
default void onHvacAutoRecirculationStateAvailable(
    @NonNull CarValue<Boolean> hvacAutoRecirculationState
)

Notifies that the climate state for FEATURE_HVAC_AUTO_RECIRCULATION is updated.

Parameters
@NonNull CarValue<Boolean> hvacAutoRecirculationState

the updated state of hvacAutoRecirculationState

onHvacDualModeStateAvailable

Added in 1.3.0
default void onHvacDualModeStateAvailable(
    @NonNull CarValue<Boolean> hvacDualModeState
)

Notifies that the climate state for FEATURE_HVAC_DUAL_MODE is updated.

Parameters
@NonNull CarValue<Boolean> hvacDualModeState

the updated state of hvacDualModeState

onHvacMaxAcModeStateAvailable

Added in 1.3.0
default void onHvacMaxAcModeStateAvailable(
    @NonNull CarValue<Boolean> hvacMaxAcModeState
)

Notifies that the climate state for FEATURE_HVAC_MAX_AC is updated.

Parameters
@NonNull CarValue<Boolean> hvacMaxAcModeState

the updated state of hvacMaxAcModeState

onHvacPowerStateAvailable

Added in 1.3.0
default void onHvacPowerStateAvailable(@NonNull CarValue<Boolean> hvacPowerState)

Notifies that the climate state for FEATURE_HVAC_POWER is updated.

Parameters
@NonNull CarValue<Boolean> hvacPowerState

the updated state of hvacPowerState

onHvacRecirculationStateAvailable

Added in 1.3.0
default void onHvacRecirculationStateAvailable(
    @NonNull CarValue<Boolean> hvacRecirculationState
)

Notifies that the climate state for FEATURE_HVAC_RECIRCULATION is updated.

Parameters
@NonNull CarValue<Boolean> hvacRecirculationState

the updated state of hvacRecirculationState

onMaxDefrosterStateAvailable

Added in 1.3.0
default void onMaxDefrosterStateAvailable(
    @NonNull CarValue<Boolean> maxDefrosterState
)

Notifies that the climate state for FEATURE_HVAC_MAX_DEFROSTER is updated.

Parameters
@NonNull CarValue<Boolean> maxDefrosterState

the updated state of maxDefrosterState

onSeatTemperatureLevelStateAvailable

Added in 1.3.0
default void onSeatTemperatureLevelStateAvailable(
    @NonNull CarValue<Integer> seatTemperatureLevel
)

Notifies that the climate state for FEATURE_SEAT_TEMPERATURE_LEVEL is updated.

Parameters
@NonNull CarValue<Integer> seatTemperatureLevel

the updated state of seatTemperatureLevel

onSeatVentilationLevelStateAvailable

Added in 1.3.0
default void onSeatVentilationLevelStateAvailable(
    @NonNull CarValue<Integer> seatVentilationLevel
)

Notifies that the climate state for FEATURE_SEAT_VENTILATION_LEVEL is updated.

Parameters
@NonNull CarValue<Integer> seatVentilationLevel

the updated state of seatVentilationLevel

onSteeringWheelHeatStateAvailable

Added in 1.3.0
default void onSteeringWheelHeatStateAvailable(
    @NonNull CarValue<Boolean> steeringWheelHeatState
)

Notifies that the climate state for FEATURE_STEERING_WHEEL_HEAT is updated.

Parameters
@NonNull CarValue<Boolean> steeringWheelHeatState

the updated state of steeringWheelHeatState