Trait nativeshell::shell::platform::flutter::BinaryMessengerExt [−][src]
pub trait BinaryMessengerExt: 'static { fn set_message_handler_on_channel<F: Fn(Bytes, &str, BinaryMessenger, BinaryMessengerResponseHandle) + 'static>(
&self,
channel: &str,
callback: F
); fn remove_message_handler_on_channel(&self, channel: &str); fn send_response<ResponseHandle: IsA<BinaryMessengerResponseHandle>>(
&self,
response_handle: ResponseHandle,
response: Bytes
); fn send_message<F: FnOnce(Bytes) + 'static>(
&self,
channel: &str,
message: Bytes,
callback: F
); fn post_message(&self, channel: &str, message: Bytes); }
Required methods
fn set_message_handler_on_channel<F: Fn(Bytes, &str, BinaryMessenger, BinaryMessengerResponseHandle) + 'static>(
&self,
channel: &str,
callback: F
)
[src]fn remove_message_handler_on_channel(&self, channel: &str)
[src]fn send_response<ResponseHandle: IsA<BinaryMessengerResponseHandle>>(
&self,
response_handle: ResponseHandle,
response: Bytes
)
[src]fn send_message<F: FnOnce(Bytes) + 'static>(
&self,
channel: &str,
message: Bytes,
callback: F
)
[src]fn post_message(&self, channel: &str, message: Bytes)
[src]Implementors
fn set_message_handler_on_channel<F: Fn(Bytes, &str, BinaryMessenger, BinaryMessengerResponseHandle) + 'static>(
&self,
channel: &str,
callback: F
)
[src]fn send_response<ResponseHandle: IsA<BinaryMessengerResponseHandle>>(
&self,
response_handle: ResponseHandle,
response: Bytes
)
[src]