inhibit


Description:

[ Version ( since = "4.18.2" ) ]
public void inhibit (bool inhibit)

Calling this function with inhibit as true will prevent the user's screensaver from activating.

This is useful when the user is watching a movie or giving a presentation.

Calling this function with inhibit as false will remove any current screensaver inhibit the Screensaver object has.

Parameters:

this

the Screensaver object

inhibit

whether to inhibit the screensaver from activating