feat: cm interface

This commit is contained in:
Kingtous committed 2023-02-07 16:20:37 +08:00
1 parent 850c4bcbbf
commit 040396b3f8
5 files changed
+53

No files matched your search

+12
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 {