onAudioRouteChanged property

OnAudioRouteChangedType? onAudioRouteChanged
getter/setter pair

This callback is triggered when the audio playback route changes.

Either of the following action will lead to audio route switching:

Implementation

OnAudioRouteChangedType? onAudioRouteChanged;