Skip to main content

TextServices

Trait TextServices 

Source
pub trait TextServices {
    // Required methods
    fn look_up(&self, text: &str);
    fn search_web(&self, text: &str);
    fn share(&self, text: &str);
}
Expand description

The text services a selection toolbar offers: Flutter’s LookUp, SearchWeb and Share platform-channel calls.

Required Methods§

Source

fn look_up(&self, text: &str)

Looks up the given text (Flutter’s LookUp.invoke).

Source

fn search_web(&self, text: &str)

Searches the web for the given text (Flutter’s SearchWeb.invoke).

Source

fn share(&self, text: &str)

Shares the given text (Flutter’s Share.invoke).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§