springroll.PageVisibility Class
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
Parameters:
-
onFocus
Function
Callback when the page becomes visible
-
onBlur
Function
Callback when the page loses visibility
_enabled
Function
private
If this object is enabled.
_onBlur
Function
private
Callback when the page loses visibility
_onFocus
Function
private
Callback when the page becomes visible
_onToggle
Function
private
The visibility toggle listener function
_visibilityChange
String
private
The name of the visibility change event for the browser
enabled
Function
private
If this object is enabled.