Module: Appium::Core::Base::Device::Keyboard

Defined in:
lib/appium_lib_core/common/device/keyboard.rb

Instance Method Summary collapse

Instance Method Details

#hide_keyboard(close_key = nil, strategy = nil) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/appium_lib_core/common/device/keyboard.rb', line 20

def hide_keyboard(close_key = nil, strategy = nil)
  option = {}

  option[:key] = close_key || 'Done'        # default to Done key.
  option[:strategy] = strategy || :pressKey # default to pressKey

  execute :hide_keyboard, {}, option
end

#is_keyboard_shownObject

rubocop:disable Naming/PredicateName



29
30
31
# File 'lib/appium_lib_core/common/device/keyboard.rb', line 29

def is_keyboard_shown # rubocop:disable Naming/PredicateName
  execute :is_keyboard_shown
end