onAudioRouteChanged method

FutureOr<void> onAudioRouteChanged(
  1. AudioRoute route
)

@detail callback @author dixing @brief Receive the callback when the audio route changes. @param route Current audio playback device. Refer to AudioRoute{@link #AudioRoute} for more information. @note - Either of the following actions will lead to audio route switching. See Set the Audio Route. - Connecting/Disconnecting an audio device. - Designating the other audio device by calling setAudioRoute{@link #RTCEngine#setAudioRoute}.

Implementation

FutureOr<void> onAudioRouteChanged(AudioRoute route) async {}