Module: Appium::Core::Android::Device::Performance

Defined in:
lib/appium_lib_core/android/device/performance.rb

Class Method Summary collapse

Class Method Details

.add_methodsObject


20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/appium_lib_core/android/device/performance.rb', line 20

def self.add_methods
  ::Appium::Core::Device.add_endpoint_method(:get_performance_data_types) do
    def get_performance_data_types
      execute :get_performance_data_types
    end
  end

  ::Appium::Core::Device.add_endpoint_method(:get_performance_data) do
    def get_performance_data(package_name:, data_type:, data_read_timeout: 1000)
      execute(:get_performance_data, {},
              packageName: package_name, dataType: data_type, dataReadTimeout: data_read_timeout)
    end
  end
end