getAudioRouteType method

Future<ZegoAudioRoute> getAudioRouteType()

get current audio route type.

Available since: 1.1.0 Description: Audio routing refers to the audio output device that an app uses to play audio, and common audio routes are: speakers, handsets, headphones, Bluetooth devices, and so on. When to call: After creating the engine createEngine. Restrictions: Not supported under win or mac platforms. Related APIs: Set audio route to speaker setAudioRouteToSpeaker.

Implementation

Future<ZegoAudioRoute> getAudioRouteType() async {
  return await ZegoExpressImpl.instance.getAudioRouteType();
}