opt: rename to on_voice_call_started

This commit is contained in:
Kingtous 2023-02-06 15:36:36 +08:00
parent 040396b3f8
commit ea391542fc
4 changed files with 5 additions and 5 deletions

View File

@ -1259,7 +1259,7 @@ impl<T: InvokeUiSession> Remote<T> {
} else {
if response.accepted {
// The peer accepts the voice call.
self.handler.on_voice_call_start();
self.handler.on_voice_call_started();
self.stop_voice_call_sender = self.start_voice_call();
} else {
// The peer refused the voice call.

View File

@ -395,8 +395,8 @@ impl InvokeUiSession for FlutterHandler {
self.push_event("switch_back", [("peer_id", peer_id)].into());
}
fn on_voice_call_start(&self) {
self.push_event("on_voice_call_start", [].into());
fn on_voice_call_started(&self) {
self.push_event("on_voice_call_started", [].into());
}
fn on_voice_call_closed(&self, reason: &str) {

View File

@ -267,7 +267,7 @@ impl InvokeUiSession for SciterHandler {
fn switch_back(&self, _id: &str) {}
fn on_voice_call_start(&self) {
fn on_voice_call_started(&self) {
self.call("onVoiceCallStart", &make_args!());
}

View File

@ -705,7 +705,7 @@ pub trait InvokeUiSession: Send + Sync + Clone + 'static + Sized + Default {
fn clipboard(&self, content: String);
fn cancel_msgbox(&self, tag: &str);
fn switch_back(&self, id: &str);
fn on_voice_call_start(&self);
fn on_voice_call_started(&self);
fn on_voice_call_closed(&self, reason: &str);
fn on_voice_call_waiting(&self);
fn on_voice_call_incoming(&self);