Module: Appium::Core::Device::Keyboard
- Defined in:
- lib/appium_lib_core/device/keyboard.rb
Class Method Summary collapse
Class Method Details
.add_methods ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/appium_lib_core/device/keyboard.rb', line 5 def self.add_methods ::Appium::Core::Device.add_endpoint_method(:hide_keyboard) do 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 end ::Appium::Core::Device.add_endpoint_method(:is_keyboard_shown) do def is_keyboard_shown # rubocop:disable Naming/PredicateName for compatibility execute :is_keyboard_shown end end end |