AutoResetProvider

AutoResetProvider

This provider (singleton) provides the possibility of an automatic reset of the application. After 7 minutes of inactivity, the page is reloaded so that the start can be seen again. Application case would be a display in an exhibition. By default this function is not active. It can be activated via the url parameter autoreset=1.

Constructor

new AutoResetProvider()

Source:

Extends

  • EventTarget

Members

enabled :boolean

Description:
  • Parameter that indicates whether the provider is enabled.

Source:

Parameter that indicates whether the provider is enabled.

Type:
  • boolean

(private) id_ :number

Description:
  • Timeout id reference

Source:

Timeout id reference

Type:
  • number

time :number

Description:
  • Time limit for inactivity

Source:

Time limit for inactivity

Type:
  • number

Methods

cancel()

Description:
  • Stops the monitoring of inactivity. Useful if a longer inactivity of the user is to be foreseen, e.g. when watching a longer video.

Source:

start()

Description:
  • Starts a new monitoring period with the specified limit of inactivity.

Source: