Tracker

Tracker

Interface which all tracking providers inherit from.

Members

active :boolean

Is the tracker active or not.

Type:
  • boolean

name :string

Name of the tracker.

Type:
  • string

Methods

(async) activate()

Activate the tracker. Disables all other currently active trackers.

(async) deactivate()

Deactivate the tracker.

isActive() → {boolean}

Is the tracker currently active.

Returns:

True if active.

Type
boolean

(async) reset()

Reset the tracker. Shorthand function for Tracker#deactivate and Tracker#activate.