Google is committed to advancing racial equity for Black communities. See how.

CarAudioManager

public final class CarAudioManager
extends Object

java.lang.Object
   ↳ android.car.media.CarAudioManager


APIs for handling audio in a car. In a car environment, we introduced the support to turn audio dynamic routing on /off by setting the "audioUseDynamicRouting" attribute in config.xml When audio dynamic routing is enabled: - Audio devices are grouped into zones - There is at least one primary zone, and extra secondary zones such as RSE (Reat Seat Entertainment) - Within each zone, audio devices are grouped into volume groups for volume control - Audio is assigned to an audio device based on its AudioAttributes usage When audio dynamic routing is disabled: - There is exactly one audio zone, which is the primary zone - Each volume group represents a controllable STREAM_TYPE, same as AudioManager

Summary

Nested classes

class CarAudioManager.CarVolumeCallback

Callback interface to receive volume change events in a car. 

Public methods

void registerCarVolumeCallback(CarAudioManager.CarVolumeCallback callback)

Registers a CarVolumeCallback to receive volume change callbacks

void unregisterCarVolumeCallback(CarAudioManager.CarVolumeCallback callback)

Unregisters a CarVolumeCallback from receiving volume change callbacks

Inherited methods

Public methods

registerCarVolumeCallback

public void registerCarVolumeCallback (CarAudioManager.CarVolumeCallback callback)

Registers a CarVolumeCallback to receive volume change callbacks

Parameters
callback CarAudioManager.CarVolumeCallback: CarVolumeCallback instance, can not be null

unregisterCarVolumeCallback

public void unregisterCarVolumeCallback (CarAudioManager.CarVolumeCallback callback)

Unregisters a CarVolumeCallback from receiving volume change callbacks

Parameters
callback CarAudioManager.CarVolumeCallback: CarVolumeCallback instance previously registered, can not be null