C

DynamicAudioRouting QML Type

Controls audio routing on Android Automotive devices in QML. More...

Import Statement: import QtAndroidAutomotive.Media
Since: QtAndroidAutomotive 6.5
Instantiates: QDynamicAudioRouting

Properties

Methods

Detailed Description

Controls audio routing on Android Automotive devices in QML. Audio Routing feature is described in Audio Routing Guidelines.

Property Documentation

audioZones : QVector<int>

This property holds all available audio zones on the device.


Method Documentation

bool clearZoneIdForUid(int uid)

Clears the active audio zone to the default for the given uid. This request can fail if occupant zone mapping is currently active. Returns true if successful, false otherwise.


bool isDynamicRoutingEnabled()

Checks if the system has dynamic routing enabled. Returns true if feature is enabled, otherwise false.

For more information, see Enabling AAOS routing.


bool isValid()

Checks if required internal JNI objects have been correctly loaded. Returns true if all required internal JNI objects are valid, otherwise false.


bool setZoneIdForUid(int zoneId, int uid)

Sets the app associated with the given uid to use the audio zone defined by the given zoneId. This request can fail if occupant zone mapping is currently active. Returns true if request was successful, false otherwise.

See also zoneIdForUid().


int zoneIdForUid(int uid)

Returns the zone id currently in use by the given uid, or -1 if the request fails.

See also setZoneIdForUid().


Available under certain Qt licenses.
Find out more.