Commit 814d412cf0358d918a1f829c47015601255a9d20
1 parent
cafc63b2
增加先声取消时的回调到flutter中
Showing
1 changed file
with
2 additions
and
0 deletions
ios/Runner/XSMessageMehtodChannel.swift
| ... | ... | @@ -105,6 +105,7 @@ class XSMessageMehtodChannel: NSObject,SSOralEvaluatingManagerDelegate { |
| 105 | 105 | |
| 106 | 106 | if (call.method == "cancelVoice") { |
| 107 | 107 | SSOralEvaluatingManager.share().cancelEvaluate(); |
| 108 | + messageChannel!.invokeMethod("voiceCancel",arguments: nil); | |
| 108 | 109 | return; |
| 109 | 110 | } |
| 110 | 111 | } |
| ... | ... | @@ -156,6 +157,7 @@ class XSMessageMehtodChannel: NSObject,SSOralEvaluatingManagerDelegate { |
| 156 | 157 | */ |
| 157 | 158 | func oralEvaluatingDidVADFrontTimeOut() { |
| 158 | 159 | SSOralEvaluatingManager.share().cancelEvaluate() |
| 160 | + messageChannel!.invokeMethod("voiceCancel",arguments: nil) | |
| 159 | 161 | } |
| 160 | 162 | |
| 161 | 163 | /** | ... | ... |