Module: Appium::Core::Base::Device::Orientation

Included in:
Bridge::W3C
Defined in:
lib/appium_lib_core/common/device/orientation.rb

Instance Method Summary collapse

Instance Method Details

#screen_orientationObject


24
25
26
# File 'lib/appium_lib_core/common/device/orientation.rb', line 24

def screen_orientation
  execute :get_screen_orientation
end

#screen_orientation=(orientation) ⇒ Object


20
21
22
# File 'lib/appium_lib_core/common/device/orientation.rb', line 20

def screen_orientation=(orientation)
  execute :set_screen_orientation, {}, { orientation: orientation }
end