Module: Appium::Core::Windows::Device::Screen

Defined in:
lib/appium_lib_core/windows/device/screen.rb

Class Method Summary collapse

Class Method Details

.add_methodsObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/appium_lib_core/windows/device/screen.rb', line 20

def self.add_methods
  ::Appium::Core::Device.add_endpoint_method(:start_recording_screen) do
    def start_recording_screen(force_restart: nil, time_limit: nil,
                               fps: nil, preset: nil, video_filter: nil,
                               capture_clicks: nil, capture_cursor: nil, audio_input: nil)
      option = {}
      option[:forceRestart] = force_restart unless force_restart.nil?
      option[:timeLimit] = time_limit unless time_limit.nil?
      option[:fps] = fps unless fps.nil?
      option[:preset] = preset unless preset.nil?
      option[:videoFilter] = video_filter unless video_filter.nil?
      option[:captureClicks] = capture_clicks unless capture_clicks.nil?
      option[:captureCursor] = capture_cursor unless capture_cursor.nil?
      option[:audioInput] = audio_input unless audio_input.nil?

      execute(:start_recording_screen, {}, { options: option })
    end
  end
end