Module: managers/connection-manager

This module manages connection states and their associated text/icon indicators

Source:

Requires

Methods


assignListeners()

Assigns listeners to events used in this class.

Source:
Listens to Events:
  • event:EVENT_MODEL_READY
  • event:EVENT_TOGGLE_CONNECTION_INDICATORS

showVersionModal()

Displays version modal

Source:

setUnitConnection()

Handle unit connectivity status

Source:
Fires:
  • event:EVENT_INDICATOR_UPDATE

showInternetAccessWarning()

Display internet access warning text

Source:
Fires:
  • event:EVENT_INDICATOR_UPDATE

internetInterval()

Checks for internet service in intervals

Source:
Fires:
  • event:internetStatusCheck()

internetStatusCheck()

Checks the status of the internet

Source:
Fires:
  • event:showInternetAccessWarning()

unitStatusCheck()

Checks the connection status of the unit

Source:

speechInterval()

Checks for speech in progress in intervals

Source:
Fires:
  • event:showSpeechAccessWarning()

showSpeechAccessWarning()

Display speech state warning text

Source:
Fires:
  • event:EVENT_INDICATOR_UPDATE

showMicrophoneAccessWarning(show)

Display microphone access warning text

Parameters:
Name Type Description
show Boolean

Show or hide

Source:
Fires:
  • event:EVENT_INDICATOR_UPDATE

microphonePing()

Tests for microphone accessibility

Source:
Fires:
  • event:showMicrophoneAccessWarning()
  • event:showSpeechAccessWarning()

showIndicators()

Show icon indicators

Source:

getStatus(id)

Getter for status'

Parameters:
Name Type Description
id String

ID for the status requested

Source:
Returns:

Status

Type
Boolean

onToggleIndicators(show)

Toggle icon indicator panel

Parameters:
Name Type Description
show Boolean

Show or hide

Source:

onJsonLoaded()

Got project JSON

Source:
Fires:
  • event:showIndicators()
  • event:internetStatusCheck()
  • event:showMicrophoneAccessWarning()
  • event:showVersionModal()