springroll.PageVisibility Class

Module: Core

Handle the page visiblity change, if supported. Application uses one of these to monitor page visibility. It is suggested that you listen to pause, paused, or resumed events on the Application instead of using one of these yourself.

Constructor

springroll.PageVisibility

(
  • onFocus
  • onBlur
)

Parameters:

  • onFocus Function

    Callback when the page becomes visible

  • onBlur Function

    Callback when the page loses visibility

destroy

()

Defined in destroy:141

Disable the detection

_enabled

Function private

Defined in _enabled:34

If this object is enabled.

_onBlur

Function private

Defined in _onBlur:27

Callback when the page loses visibility

_onFocus

Function private

Defined in _onFocus:20

Callback when the page becomes visible

_onToggle

Function private

Defined in _onToggle:44

The visibility toggle listener function

_visibilityChange

String private

The name of the visibility change event for the browser

enabled

Function private

Defined in enabled:91

If this object is enabled.