pub trait HidesKeyboard: AppiumClientTrait {
    // Provided methods
    fn hide_keyboard<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), CmdError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn hide_keyboard_with_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), CmdError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn hide_keyboard_with_strategy<'life0, 'life1, 'async_trait>(
        &'life0 self,
        strategy: HideKeyboardStrategy,
        key_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), CmdError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Expand description

Hide onscreen keyboard

Provided Methods§

source

fn hide_keyboard<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), CmdError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Tries to hide keyboard using default system mechanism.

Note: On some devices, it defaults to “swipe” or “back” button. It unfortunately can cause side effects like going to the previous screen, or not hiding the keyboard at all in some apps. On iOS, the keyboard might not hide at all.

In such cases, consider implementing your own “hide keyboard” with swipe or tap on screen.

source

fn hide_keyboard_with_key<'life0, 'life1, 'async_trait>( &'life0 self, key_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), CmdError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn hide_keyboard_with_strategy<'life0, 'life1, 'async_trait>( &'life0 self, strategy: HideKeyboardStrategy, key_name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), CmdError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§