public interface LocksDevice extends ExecutesMethod
Modifier and Type | Method and Description |
---|---|
default boolean |
isDeviceLocked()
Check if the device is locked.
|
default void |
lockDevice()
This method locks a device.
|
default void |
lockDevice(java.time.Duration duration)
Lock the device (bring it to the lock screen) for a given number of
seconds or forever (until the command for unlocking is called).
|
default void |
unlockDevice()
Unlock the device if it is locked.
|
execute, execute
default void lockDevice()
default void lockDevice(java.time.Duration duration)
duration
- for how long to lock the screen. Minimum time resolution is one second.
A negative/zero value will lock the device and return immediately.default void unlockDevice()
default boolean isDeviceLocked()