public interface LocksIOSDevice extends ExecutesMethod
Modifier and Type | Method and Description |
---|---|
default void |
lockDevice(java.time.Duration duration)
Lock the device (bring it to the lock screen) for a given number of
seconds.
|
default void |
lockDevice(int seconds)
Deprecated.
|
execute, execute
@Deprecated default void lockDevice(int seconds)
lockDevice(Duration)
instead.seconds
- number of seconds to lock the screen fordefault void lockDevice(java.time.Duration duration)
duration
- for how long to lock the screen. Minimum time resolution is one second