Sha256: 56fbef99fef9a1b47415ad723dee03536cf3cd9aa110658b85c4266d81e3259b

Contents?: true

Size: 573 Bytes

Versions: 3

Compression:

Stored size: 573 Bytes

Contents

module Appium
  module Core
    module Android
      module Touch
        def self.extend_touch_actions
          ::Appium::Core::TouchAction.class_eval do
            def swipe_coordinates(start_x: 0, start_y: 0, offset_x: 0, offset_y: 0)
              Appium::Logger.info "extended Appium::Core::Android::Touch, start_x: #{start_x},"\
                " start_y: #{start_y}, offset_x: #{offset_x}, offset_y: #{offset_y}"
              { offset_x: (start_x + offset_x), offset_y: (start_y + offset_y) }
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
appium_lib_core-1.0.0 lib/appium_lib_core/android/touch.rb
appium_lib_core-0.1.1 lib/appium_lib_core/android/touch.rb
appium_lib_core-0.1.0 lib/appium_lib_core/android/touch.rb