feat: callbacks and flutter msg bridge

This commit is contained in:
Kingtous
2023-05-04 13:18:19 +08:00
parent 0ed209b4d2
commit 34314e50f7
5 changed files with 133 additions and 50 deletions

View File

@@ -1405,6 +1405,13 @@ pub fn plugin_event(_id: String, _peer: String, _event: Vec<u8>) {
}
}
pub fn plugin_register_event_stream(id: String, event2ui: StreamSink<EventToUI>) {
#[cfg(feature = "plugin_framework")]
{
crate::plugin::native_handlers::session::session_register_event_stream(id, event2ui);
}
}
#[inline]
pub fn plugin_get_session_option(
_id: String,