feat: add mic gain set and get methods

This commit is contained in:
Andrew 2026-04-23 17:14:17 +07:00
parent a740475d56
commit 7608d79d64
8 changed files with 83 additions and 8 deletions

View file

@ -117,4 +117,17 @@ class MethodChannelLiblinphoneFlutter extends LiblinphoneFlutterPlatform {
Future<bool> stopCallService() async {
return (await methodChannel.invokeMethod<bool>('stopCallService'))!;
}
@override
Future<bool> setMicGain(double level) async {
return (await methodChannel.invokeMethod<bool>(
'setMicGain',
<String, dynamic>{'level': level},
))!;
}
@override
Future<double> getMicGain() async {
return (await methodChannel.invokeMethod<double>('getMicGain'))!;
}
}