plugin_framework, add event listening

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-27 11:24:19 +08:00
parent 404525759e
commit 9a457894b3
5 changed files with 84 additions and 4 deletions

View File

@@ -961,6 +961,14 @@ impl<T: InvokeUiSession> Remote<T> {
}
});
}
// on connection established client
#[cfg(all(feature = "flutter", feature = "plugin_framework"))]
#[cfg(not(any(target_os = "android", target_os = "ios")))]
crate::plugin::handle_listen_event(
crate::plugin::EVENT_ON_CONN_CLIENT,
&self.handler.id,
);
}
if self.handler.is_file_transfer() {