routeAudioTo static method
Routes audio to the specified destination.
This static method routes audio to the destination specified by routeType
.
The routeType
parameter specifies the type of destination where the audio
should be routed. It must not be null. you will get Available audio device types from getAllAvailableAudioInput.
Returns a Future that completes with a bool value indicating whether the audio routing was successful.
Throws an ArgumentError if the routeType
is null.
Implementation
static Future<bool?> routeAudioTo({required String routeType}) async {
return FlyChatFlutterPlatform.instance.routeAudioTo(routeType: routeType);
}