getActiveMicrophones method
Retrieves the Bluetooth microphone using a method channel call to the native platform.
Implementation
@override
Future<List<dynamic>> getActiveMicrophones() async {
// Invoke the 'getCommunicationDevice' method on the method channel
// The native platform will return the currently selected microphone for communication, or null if not found.
return await methodChannel
.invokeMethod<List<dynamic>>('getActiveMicrophones') ??
<Map<String, String>>[];
}