Module: Appium::Core::Android::Uiautomator2::Device

Extended by:
Forwardable
Defined in:
lib/appium_lib_core/android/uiautomator2/device.rb,
lib/appium_lib_core/android/uiautomator2/device/battery.rb

Defined Under Namespace

Modules: Battery

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(_mod) ⇒ Object


45
46
47
# File 'lib/appium_lib_core/android/uiautomator2/device.rb', line 45

def extended(_mod)
  Battery.add_methods
end

Instance Method Details

#battery_infoHash

Get battery information.

Examples:


@driver.battery_info #=> { state: :charging, level: 0.7 }

Since:

  • Appium 1.6.0


# File 'lib/appium_lib_core/android/uiautomator2/device.rb', line 24