Search


Search something to see results

LeavePageHandler

Provides generic handling of data retrieval before users leave the page.

Index

Constructors

Methods

Constructors

Methods

Triggers communication of unload phase to the service worker if the value has changed.

Parameters

  • value: boolean

Returns void

Executes the remaining callbacks.

Parameters

Returns void

Initialises all event listeners related to the user leaving the current page.

Returns void

Indicates whether the current page was unloaded because the user left.

Returns boolean

A trigger function to execute a callback when the user leaves the page.

Parameters

Returns void

Registers the different unload event listeners in the capture phase to early communicate the unload flag to the service worker via POST message.

Returns void

Checks whether remaining data is available to send out before the user leaves.

Parameters

Returns void