feat: add sendDtmf method to send DTMF tones during a call

This commit is contained in:
Andrew 2026-03-30 09:28:40 +07:00
parent b95baa6799
commit f64284f963
9 changed files with 84 additions and 1 deletions

View file

@ -209,7 +209,21 @@ public class LiblinphoneFlutterPlugin: NSObject, FlutterPlugin {
case "syncCurrentState" :
linphoneBridge.syncCurrentState()
result(true)
case "sendDtmf":
guard let args = call.arguments as? [String: Any],
let tone = args["tone"] as? String else {
result(FlutterError(
code: "INVALID_ARGUMENTS",
message: "Missing required arguments",
details: nil
))
return
}
let success = linphoneBridge.sendDtmf(tone: tone)
result(success)
default:
result(FlutterMethodNotImplemented)
}