Function: addAudioRouteChangedListener()
ts
function addAudioRouteChangedListener(listener): EventSubscription;Defined in: Calls.ts:321
Subscribes to audio route changed events.
Fired when the audio route changes (e.g., user connects Bluetooth headphones, toggles speaker mode).
Parameters
| Parameter | Type | Description |
|---|---|---|
listener | (event) => void | Callback invoked when audio route changes. |
Returns
EventSubscription
A subscription that can be removed by calling .remove().