From 814d412cf0358d918a1f829c47015601255a9d20 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Wed, 12 Jun 2024 15:13:27 +0800 Subject: [PATCH] 增加先声取消时的回调到flutter中 --- ios/Runner/XSMessageMehtodChannel.swift | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/ios/Runner/XSMessageMehtodChannel.swift b/ios/Runner/XSMessageMehtodChannel.swift index f6381b5..4f9450a 100644 --- a/ios/Runner/XSMessageMehtodChannel.swift +++ b/ios/Runner/XSMessageMehtodChannel.swift @@ -105,6 +105,7 @@ class XSMessageMehtodChannel: NSObject,SSOralEvaluatingManagerDelegate { if (call.method == "cancelVoice") { SSOralEvaluatingManager.share().cancelEvaluate(); + messageChannel!.invokeMethod("voiceCancel",arguments: nil); return; } } @@ -156,6 +157,7 @@ class XSMessageMehtodChannel: NSObject,SSOralEvaluatingManagerDelegate { */ func oralEvaluatingDidVADFrontTimeOut() { SSOralEvaluatingManager.share().cancelEvaluate() + messageChannel!.invokeMethod("voiceCancel",arguments: nil) } /** -- libgit2 0.22.2