Skip to content

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 ​

ParameterTypeDescription
listener(event) => voidCallback invoked when audio route changes.

Returns ​

EventSubscription

A subscription that can be removed by calling .remove().