@lock


Description:

[ Version ( since = "4.18.2" ) ]
public bool @lock ()

Attempts to lock the screen, either with one of the screensaver D-Bus proxies, the Xfconf lock command, or one of the fallback scripts such as xdg-screensaver.

Parameters:

this

the Screensaver object

Returns:

true if the lock attempt returns success, false otherwise.