API Docs for: 0.0.2
Show:

core.wirings.OfflineModule Class

Extends core.wirings.Module
Module: addons

The main class that implements offline webapp functionalities using application cache and local storage. Extends core.wirings.Module to have the ability to be instantiated in the same fashion.

Constructor

core.wirings.OfflineModule

(
  • opts
)

Parameters:

  • opts Object

    An object containing configurations required by the Core derived class.

    • el HTMLElement

      The node element included in the class composition.

Methods

cacheStatus

(
  • status
)

Virtual protected function. Should be overridden on subclasses. Called automatically when the cache status has changed.

Parameters:

  • status String

    The status of the application cache.

onApplicationCacheStatus

(
  • event
)

The main method handler for checking the application status. Also determines if a web application has gone offline/online

Parameters:

  • event Object

    Contains the information about the current application cache status.

onlineStatus

(
  • isonline
)

Virtual protected function. Should be overridden on subclasses. Called automatically when the online/offline state of the application changes.

Parameters:

  • isonline Boolean

    True/false depending on the applications online/offline state.