[][src]Trait autoclip_core::AutoclipPlugin

pub trait AutoclipPlugin {
    pub fn on_clip(&self, contents: &str) -> Option<String>;
}

Plugins must implement this trait. This trait is used to trigger events from the app.

Required methods

pub fn on_clip(&self, contents: &str) -> Option<String>[src]

This event will be triggered when the content of the clipboard is updated. If the plugin does not perform any modification for the content, this function must return None, instead of Some(contents.to_string()) .

Loading content...

Implementors

Loading content...