feat: cm interface

This commit is contained in:
Kingtous
2023-02-06 12:53:57 +08:00
parent 850c4bcbbf
commit 040396b3f8
5 changed files with 53 additions and 0 deletions

View File

@@ -537,6 +537,18 @@ pub mod connection_manager {
fn show_elevation(&self, show: bool) {
self.push_event("show_elevation", vec![("show", &show.to_string())]);
}
fn voice_call_started(&self, id: i32) {
self.push_event("voice_call_started", vec![("show", &id.to_string())]);
}
fn voice_call_incoming(&self, id: i32) {
self.push_event("voice_call_incoming", vec![("id", &id.to_string())]);
}
fn voice_call_closed(&self, id: i32, reason: &str) {
self.push_event("voice_call_closed", vec![("id", &id.to_string()), ("reason", &reason.to_string())]);
}
}
impl FlutterHandler {