Global

Methods

canScroll( )

Method called by the application to decide whether or not it's allowed to swipe to the next/previous page
Returns true if the application can move, otherwise false

Returns:

boolean

Source:
  • core/scripts.js, line 70

isOnline( bool )

Method called by application when the application goes online/offline

Parameters:
Name Type Description
bool

the boolean value

Source:
  • core/scripts.js, line 38

loadPageState( str )

Method called by application to load saved state

Parameters:
Name Type Description
str

the JSON-encoded state

Source:
  • core/scripts.js, line 54

offScreen( )

Method called by application when the page is no longer visible

Source:
  • core/scripts.js, line 23

onScreen( )

Method called by application when the page is visible

Source:
  • core/scripts.js, line 10

Events

ISSUE_SCREEN

Handler for custom event ISSUE_SCREEN, dispatched when the user presses the associated button.

Parameters:
Name Type Description
dataset DOMStringMap

required to comply with normal button usage

Source:
  • core/PressrunCore.js, line 1167

NAVIGATE_NEXT_PAGE

Handler for custom event NAVIGATE_NEXT_PAGE, dispatched when the user presses the associated button.

Parameters:
Name Type Description
elem HTMLElement
Source:
  • core/PressrunCore.js, line 967

NAVIGATE_NEXT_PAGE

Handler for custom event NAVIGATE_NEXT_PAGE, dispatched when the user presses the associated button.

Parameters:
Name Type Description
elem HTMLElement
Source:
  • core/PressrunCore.js, line 979

NAVIGATE_NEXT_PAGE

Handler for custom event NAVIGATE_NEXT_PAGE, dispatched when the user presses the associated button.

Parameters:
Name Type Description
dataset DOMStringMap
Source:
  • core/PressrunCore.js, line 991

NAVIGATE_NEXT_PAGE

Handler for custom event NAVIGATE_NEXT_PAGE, dispatched when the user presses the associated button.

Parameters:
Name Type Description
dataset DOMStringMap
Source:
  • core/PressrunCore.js, line 1013

NAVIGATE_NEXT_PAGE

Handler for custom event NAVIGATE_NEXT_PAGE, dispatched when the user presses the associated button.

Parameters:
Name Type Description
dataset DOMStringMap
Source:
  • core/PressrunCore.js, line 1046

NAVIGATE_NEXT_PAGE

Handler for custom event NAVIGATE_NEXT_PAGE, dispatched when the user presses the associated button.

Parameters:
Name Type Description
dataset DOMStringMap
Source:
  • core/PressrunCore.js, line 1112

OPEN_FILE

Handler for custom event OPEN_FILE, dispatched when the user presses the associated button.

Parameters:
Name Type Description
dataset DOMStringMap
Source:
  • core/PressrunCore.js, line 1131

OPEN_FILE

Handler for custom event GEOLOCATION, dispatched when the user presses the associated button.

Parameters:
Name Type Description
dataset DOMStringMap
Source:
  • core/PressrunCore.js, line 1143

RESET_PAGE

Handler for custom event RESET_PAGE, dispatched when the user presses the associated button.

Parameters:
Name Type Description
dataset DOMStringMap

required to comply with normal button usage

Source:
  • core/PressrunCore.js, line 1215

TAKE_SCREENSHOT

Handler for custom event TAKE_SCREENSHOT, dispatched when the user presses the associated button.

Parameters:
Name Type Description
dataset DOMStringMap

required to comply with normal button usage

Source:
  • core/PressrunCore.js, line 1183
Top