Sha256: 01fa32af52aaf01c452612b6f57d2fe8b554e501e63e3c7ed475e9b632882161

Contents?: true

Size: 754 Bytes

Versions: 3

Compression:

Stored size: 754 Bytes

Contents

module Appium
  module Core
    module Device
      module DeviceLock
        def self.add_methods
          ::Appium::Core::Device.add_endpoint_method(:lock) do
            def lock(duration = nil)
              opts = duration ? { seconds: duration } : {}
              execute :lock, {}, opts
            end
          end

          ::Appium::Core::Device.add_endpoint_method(:device_locked?) do
            def device_locked?
              execute :device_locked?
            end
          end

          ::Appium::Core::Device.add_endpoint_method(:unlock) do
            def unlock
              execute :unlock
            end
          end
        end
      end # module DeviceLock
    end # module Device
  end # module Core
end # module Appium

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
appium_lib_core-1.7.2 lib/appium_lib_core/device/device_lock.rb
appium_lib_core-1.7.1 lib/appium_lib_core/device/device_lock.rb
appium_lib_core-1.7.0 lib/appium_lib_core/device/device_lock.rb