CarClimateProfileCallback


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


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

Summary

Public methods

default void

Notifies that the profile information for FEATURE_CABIN_TEMPERATURE is available.

default void

Notifies that the profile information for FEATURE_CAR_ZONE_MAPPING is available.

default void

Notifies that the profile information for FEATURE_HVAC_DEFROSTER is available.

default void

Notifies that the profile information for FEATURE_HVAC_ELECTRIC_DEFROSTER is available.

default void

Notifies that the profile information for FEATURE_FAN_DIRECTION is available.

default void

Notifies that the profile information for FEATURE_FAN_SPEED is available.

default void

Notifies that the profile information for FEATURE_HVAC_AC is available.

default void

Notifies that the profile information for FEATURE_HVAC_AUTO_MODE is available.

default void

Notifies that the profile information for FEATURE_HVAC_AUTO_RECIRCULATION is available.

default void

Notifies that the profile information for FEATURE_HVAC_DUAL_MODE is available.

default void

Notifies that the profile information for FEATURE_HVAC_MAX_AC is available.

default void

Notifies that the profile information for FEATURE_HVAC_POWER is available.

default void

Notifies that the profile information for FEATURE_HVAC_RECIRCULATION is available.

default void

Notifies that the profile information for FEATURE_HVAC_MAX_DEFROSTER is available.

default void

Notifies that the profile information for FEATURE_SEAT_TEMPERATURE_LEVEL is available.

default void

Notifies that the profile information for FEATURE_SEAT_VENTILATION_LEVEL is available.

default void

Notifies that the profile information for FEATURE_STEERING_WHEEL_HEAT is available.

Public methods

onCabinTemperatureProfileAvailable

Added in 1.3.0
default void onCabinTemperatureProfileAvailable(
    @NonNull CabinTemperatureProfile cabinTemperatureProfile
)

Notifies that the profile information for FEATURE_CABIN_TEMPERATURE is available.

Applications will get a single callback containing a list of different temperatures in Celsius and Fahrenheit for different groups of zones. Returns empty lists if the car can not support the feature. s

Parameters
@NonNull CabinTemperatureProfile cabinTemperatureProfile

an object of CabinTemperatureProfile class containing information about the feature's supported values

onCarZoneMappingInfoProfileAvailable

Added in 1.3.0
default void onCarZoneMappingInfoProfileAvailable(
    @NonNull CarZoneMappingInfoProfile carZoneMappingInfoProfile
)

Notifies that the profile information for FEATURE_CAR_ZONE_MAPPING is available.

Applications will get multiple callbacks. For each callback, it returns a CarZone seatsGroupedZone and a List<CarZone> which contains all individual seats in thisseatsGroupedZone.

Parameters
@NonNull CarZoneMappingInfoProfile carZoneMappingInfoProfile

an object of CarZoneMappingInfoProfile class containing information about the feature's supported zones

onDefrosterProfileAvailable

Added in 1.3.0
default void onDefrosterProfileAvailable(@NonNull DefrosterProfile defrosterProfile)

Notifies that the profile information for FEATURE_HVAC_DEFROSTER is available.

Applications will get multiple callbacks if the car climate system can control the defroster independently in multiple zones. Returns an empty list if the car can not support the feature.

A CarZone with CarZone#CAR_ZONE_ROW_FIRST indicates the front window. The rear window's zone will have row value as CarZone#CAR_ZONE_ROW_EXCLUDE_FIRST.

Parameters
@NonNull DefrosterProfile defrosterProfile

an object of DefrosterProfile class containing information about the feature's supported zones

onElectricDefrosterProfileAvailable

Added in 1.3.0
default void onElectricDefrosterProfileAvailable(
    @NonNull ElectricDefrosterProfile electricDefrosterProfile
)

Notifies that the profile information for FEATURE_HVAC_ELECTRIC_DEFROSTER is available.

Applications will get multiple callbacks if the car climate system can control the HVAC electric defroster independently in multiple zones. Returns an empty list if the car can not support the feature.

A CarZone with CarZone#CAR_ZONE_ROW_FIRST indicates the front window. The rear window's zone will have row value as CarZone#CAR_ZONE_ROW_EXCLUDE_FIRST.

Parameters
@NonNull ElectricDefrosterProfile electricDefrosterProfile

an object of ElectricDefrosterProfile class containing information about the feature's supported zones

onFanDirectionProfileAvailable

Added in 1.3.0
default void onFanDirectionProfileAvailable(
    @NonNull FanDirectionProfile fanDirectionProfile
)

Notifies that the profile information for FEATURE_FAN_DIRECTION is available.

Applications will get a single callback containing a list of different fan directions for different groups of zones. Returns empty lists if the car cannot support the feature.

Parameters
@NonNull FanDirectionProfile fanDirectionProfile

an object of FanDirectionProfile class containing information about the feature's supported values

onFanSpeedLevelProfileAvailable

Added in 1.3.0
default void onFanSpeedLevelProfileAvailable(
    @NonNull FanSpeedLevelProfile fanSpeedLevelProfile
)

Notifies that the profile information for FEATURE_FAN_SPEED is available.

Applications will get a single callback containing a list of different fan speed levels for different groups of zones. Returns empty lists if the car cannot support the feature.

Parameters
@NonNull FanSpeedLevelProfile fanSpeedLevelProfile

an object of FanSpeedLevelProfile class containing information about the feature's supported values

onHvacAcProfileAvailable

Added in 1.3.0
default void onHvacAcProfileAvailable(@NonNull HvacAcProfile hvacAcProfile)

Notifies that the profile information for FEATURE_HVAC_AC is available.

Applications will get multiple callbacks if the car climate system can control the HVAC AC mode independently in multiple zones. Returns an empty list if the car can not support the feature.

Parameters
@NonNull HvacAcProfile hvacAcProfile

an object of HvacAcProfile class containing information about the feature's supported zones

onHvacAutoModeProfileAvailable

Added in 1.3.0
default void onHvacAutoModeProfileAvailable(
    @NonNull HvacAutoModeProfile hvacAutoModeProfile
)

Notifies that the profile information for FEATURE_HVAC_AUTO_MODE is available.

Applications will get multiple callbacks if the car climate system can control the HVAC AUTO mode independently in multiple zones. Returns an empty list if the car can not support the feature.

Parameters
@NonNull HvacAutoModeProfile hvacAutoModeProfile

an object of HvacAutoModeProfile class containing information about the feature's supported zones

onHvacAutoRecirculationProfileAvailable

Added in 1.3.0
default void onHvacAutoRecirculationProfileAvailable(
    @NonNull HvacAutoRecirculationProfile hvacAutoRecirculationProfile
)

Notifies that the profile information for FEATURE_HVAC_AUTO_RECIRCULATION is available.

Applications will get multiple callbacks if the car climate system can control the HVAC AUTO recirculation independently in multiple zones. Returns an empty list if the car can not support the feature.

Parameters
@NonNull HvacAutoRecirculationProfile hvacAutoRecirculationProfile

an object of HvacAutoRecirculationProfile class containing information about the feature's supported zones

onHvacDualModeProfileAvailable

Added in 1.3.0
default void onHvacDualModeProfileAvailable(
    @NonNull HvacDualModeProfile hvacDualModeProfile
)

Notifies that the profile information for FEATURE_HVAC_DUAL_MODE is available.

Applications will get multiple callbacks if the car climate system can control the HVAC DUAL mode independently in multiple zones. Returns an empty list if the car can not support the feature.

Parameters
@NonNull HvacDualModeProfile hvacDualModeProfile

an object of HvacDualModeProfile class containing information about the feature's supported zones

onHvacMaxAcModeProfileAvailable

Added in 1.3.0
default void onHvacMaxAcModeProfileAvailable(
    @NonNull HvacMaxAcModeProfile hvacMaxAcModeProfile
)

Notifies that the profile information for FEATURE_HVAC_MAX_AC is available.

Applications will get multiple callbacks if the car climate system can control the HVAC MAX AC mode independently in multiple zones. Returns an empty list if the car can not support the feature.

Parameters
@NonNull HvacMaxAcModeProfile hvacMaxAcModeProfile

an object of HvacMaxAcModeProfile class containing information about the feature's supported zones

onHvacPowerProfileAvailable

Added in 1.3.0
default void onHvacPowerProfileAvailable(@NonNull HvacPowerProfile hvacPowerProfile)

Notifies that the profile information for FEATURE_HVAC_POWER is available.

Applications will get multiple callbacks if the car climate system can control the HVAC power independently in multiple zones. Returns an empty list if the car can not support the feature.

Parameters
@NonNull HvacPowerProfile hvacPowerProfile

an object of HvacPowerProfile class containing information about the feature's supported zones

onHvacRecirculationProfileAvailable

Added in 1.3.0
default void onHvacRecirculationProfileAvailable(
    @NonNull HvacRecirculationProfile hvacRecirculationProfile
)

Notifies that the profile information for FEATURE_HVAC_RECIRCULATION is available.

Applications will get multiple callbacks if the car climate system can control the HVAC recirculation independently in multiple zones. Returns an empty list if the car can not support the feature.

Parameters
@NonNull HvacRecirculationProfile hvacRecirculationProfile

an object of HvacRecirculationProfile class containing information about the feature's supported zones

onMaxDefrosterProfileAvailable

Added in 1.3.0
default void onMaxDefrosterProfileAvailable(
    @NonNull MaxDefrosterProfile maxDefrosterProfile
)

Notifies that the profile information for FEATURE_HVAC_MAX_DEFROSTER is available.

Applications will get multiple callbacks if the car climate system can control the HVAC max defroster independently in multiple zones. Returns an empty list if the car can not support the feature.

A CarZone with CarZone#CAR_ZONE_ROW_FIRST indicates the front window. The rear window's zone will have row value as CarZone#CAR_ZONE_ROW_EXCLUDE_FIRST.

Parameters
@NonNull MaxDefrosterProfile maxDefrosterProfile

an object of MaxDefrosterProfile class containing information about the feature's supported zones

onSeatTemperatureLevelProfileAvailable

Added in 1.3.0
default void onSeatTemperatureLevelProfileAvailable(
    @NonNull SeatTemperatureProfile seatTemperatureProfile
)

Notifies that the profile information for FEATURE_SEAT_TEMPERATURE_LEVEL is available.

Applications will get a single callback containing a list of different seat temperature levels for different groups of zones. Returns empty lists if the car cannot support the feature.

The return list can have negative and positive values. Negative values indicate cooling level. Positive values indicates heating level.

Parameters
@NonNull SeatTemperatureProfile seatTemperatureProfile

an object of SeatTemperatureProfile class containing information about the feature's supported values

onSeatVentilationLevelProfileAvailable

Added in 1.3.0
default void onSeatVentilationLevelProfileAvailable(
    @NonNull SeatVentilationProfile seatVentilationProfile
)

Notifies that the profile information for FEATURE_SEAT_VENTILATION_LEVEL is available.

Applications will get a single callback containing a list of different seat ventilation levels for different groups of zones. Returns empty lists if the car cannot support the feature.

Parameters
@NonNull SeatVentilationProfile seatVentilationProfile

an object of SeatVentilationProfile class containing information about the feature's supported values

onSteeringWheelHeatProfileAvailable

Added in 1.3.0
default void onSteeringWheelHeatProfileAvailable(
    @NonNull SteeringWheelHeatProfile steeringWheelHeatProfile
)

Notifies that the profile information for FEATURE_STEERING_WHEEL_HEAT is available.

Parameters
@NonNull SteeringWheelHeatProfile steeringWheelHeatProfile

an object of SteeringWheelHeatProfile class containing information about the feature's supported values