system.vision.isScreenLocked
Backwards Compatibility
This function replaces system.security.isScreenLocked. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility.
This function is used in Python Scripting.
Descriptionβ
Returns whether or not the screen is currently locked.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.vision.isScreenLocked()
Parametersβ
Nothing
Returnsβ
Boolean - A flag indicating whether or not the screen is currently locked.
Scopeβ
Vision Client
Code Exampleβ
Code Snippet
# This would run in a timer script to lock the screen after 15 seconds of inactivity,
# and then log the user out after 30 seconds of inactivity.
if system.vision.getInactivitySeconds() > 15 and not system.vision.isScreenLocked():
system.vision.lockScreen()
elif system.vision.getInactivitySeconds() > 30:
system.vision.logout()