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

Implementors