setAudioRouteType abstract method

Future<void> setAudioRouteType(
  1. ZIMAudioRouteType routeType
)

Set audio routing type.

Available since: 1.0.0 Description: Set the audio routing type to choose whether to use speakers or earpieces to play audio. Use case: When developers need to have the option for users to choose where the sound is played from, they can call this API to change the audio routing type currently being played. When to call: Called at any time after init. Caution: When the user is currently using headphones for audio playback, the settings of this API will not take effect. Restrictions: None.

  • routeType Audio routing type, the default is that the sound is played from the speaker.

Implementation

Future<void> setAudioRouteType(ZIMAudioRouteType routeType);