Module: Appium::Core::Ios::Xcuitest::Device::Screen

Defined in:
lib/appium_lib_core/ios/xcuitest/device/screen.rb,
sig/lib/appium_lib_core/ios/xcuitest/device/screen.rbs

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.add_methods(target) ⇒ Object

Parameters:

  • target (Object)

Returns:

  • (Object)


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/appium_lib_core/ios/xcuitest/device/screen.rb', line 21

def self.add_methods(target)
  ::Appium::Core::Device.add_endpoint_method(:start_recording_screen, bridge: target.bridge_extensions) do
    def start_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT',
                               file_field_name: nil, form_fields: nil, headers: nil, force_restart: nil,
                               video_type: 'mjpeg', time_limit: '180', video_quality: nil,
                               video_fps: nil, video_scale: nil, video_filters: nil, pixel_format: nil)
      option = ::Appium::Core::Base::Device::ScreenRecord.new(
        remote_path: remote_path, user: user, pass: pass, method: method,
        file_field_name: file_field_name, form_fields: form_fields, headers: headers,
        force_restart: force_restart
      ).upload_option

      option[:videoType] = video_type
      option[:timeLimit] = time_limit

      option[:videoQuality] = video_quality unless video_quality.nil?
      option[:videoFps] = video_fps unless video_fps.nil?
      option[:videoScale] = video_scale unless video_scale.nil?
      option[:videoFilters] = video_filters unless video_filters.nil?
      option[:pixelFormat] = pixel_format unless pixel_format.nil?

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

Instance Method Details

#executeObject

Parameters:

  • command (Symbol)
  • (Hash[untyped, untyped])
  • (Hash[untyped, untyped])

Returns:

  • (Object)


7
# File 'sig/lib/appium_lib_core/ios/xcuitest/device/screen.rbs', line 7

def execute: (Symbol command, ?Hash[untyped, untyped], ?Hash[untyped, untyped]) -> untyped