Skip to main content

UserFeedback

Trait UserFeedback 

Source
pub trait UserFeedback:
    Send
    + Sync
    + 'static {
    // Required methods
    fn show_toast(&self, options: ToastOptions) -> Result<(), PlatformError>;
    fn hide_toast(&self) -> Result<(), PlatformError>;
    fn show_modal(
        &self,
        options: ModalOptions,
        callback_id: u64,
    ) -> Result<(), PlatformError>;
    fn show_action_sheet(
        &self,
        options: Vec<String>,
        cancel_text: String,
        item_color: String,
        callback_id: u64,
    ) -> Result<(), PlatformError>;
}

Required Methods§

Source

fn show_toast(&self, options: ToastOptions) -> Result<(), PlatformError>

Source

fn hide_toast(&self) -> Result<(), PlatformError>

Source

fn show_modal( &self, options: ModalOptions, callback_id: u64, ) -> Result<(), PlatformError>

Source

fn show_action_sheet( &self, options: Vec<String>, cancel_text: String, item_color: String, callback_id: u64, ) -> Result<(), PlatformError>

Implementors§