Sha256: 98c35f6a7072cd9ce91cceefabec47d7e99c70013d593fa48766d903c7f294e5

Contents?: true

Size: 494 Bytes

Versions: 28

Compression:

Stored size: 494 Bytes

Contents

module Appium
  module Core
    class Base
      module Device
        module DeviceLock
          def lock(duration = nil)
            opts = duration ? { seconds: duration } : {}
            execute :lock, {}, opts
          end

          def device_locked?
            execute :device_locked?
          end

          def unlock
            execute :unlock
          end
        end # module DeviceLock
      end # module Device
    end # class Base
  end # module Core
end # module Appium

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
appium_lib_core-3.0.2 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-3.0.1 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-3.0.0 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.3.4 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.3.3 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.3.2 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.3.1 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.3.0 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.2.2 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.2.1 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.2.0 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.1.1 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.1.0 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.0.6 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.0.5 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.0.4 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.0.3 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.0.2 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.0.1 lib/appium_lib_core/common/device/device_lock.rb
appium_lib_core-2.0.0 lib/appium_lib_core/common/device/device_lock.rb