AbstractAlexaService

AbstractAlexaService ⇐ Abstract

Kind: global abstract class
Extends: Abstract
Service:

AbstractAlexaService()

Service which handles Amazon’s ALEXA platform.

init() ⇒ Promise

Init the service

Kind: instance method of AbstractAlexaService

isProductRegistered() ⇒ Promise.<Boolean>

Allows to test if current device is registered

Kind: instance method of AbstractAlexaService

startProductRegistration() ⇒ Promise

Allows to start current device registration

Kind: instance method of AbstractAlexaService

stopProductRegistration() ⇒ Promise

Allows to stop current device registration

Kind: instance method of AbstractAlexaService

unregisterProduct() ⇒ Promise

Allows to unregister current device

Kind: instance method of AbstractAlexaService

tapToTalk() ⇒ Promise

Just a way to trigger Alexa manually

Kind: instance method of AbstractAlexaService

enableAudioFeedback(enable) ⇒ Promise.<Number>

Allows to enable audio feedback

Kind: instance method of AbstractAlexaService

ParamTypeDescription
enableBoolean

True to enable

isAudioFeedbackEnabled() ⇒ Promise.<Boolean>

Returns true if audio feedback is enabled, false else

Kind: instance method of AbstractAlexaService
Returns: Promise.<Boolean> - Returns true if audio feedback is enabled, false else

setLanguage(lng) ⇒ Promise

Set a new language for Amazon SDK

Kind: instance method of AbstractAlexaService

ParamTypeDescription
lngString

Language to set

getCurrentLanguage() ⇒ Promise.<String>

Returns the current language set in the Amazon SDK

Kind: instance method of AbstractAlexaService
Returns: Promise.<String> - Returns the current language set in the Amazon SDK

getLanguageList() ⇒ Promise.<String>

Returns the supported languages from Amazon SDK

Kind: instance method of AbstractAlexaService
Returns: Promise.<String> - Returns the supported languages from Amazon SDK

isActivated() ⇒ Promise

get the activation status

Kind: instance method of AbstractAlexaService

activate() ⇒ Promise

Activate the product

Kind: instance method of AbstractAlexaService

deactivate() ⇒ Promise

Deactivate the product

Kind: instance method of AbstractAlexaService

playbackButtonPressed(button) ⇒ Promise

Method to inform Alexa that a playback button has been pressed

Kind: instance method of AbstractAlexaService

ParamTypeDescription
buttonobject

the pressed button

playbackModeToggle(toggleMode) ⇒ Promise

Method to inform Alexa that a playback mode has been toggled

Kind: instance method of AbstractAlexaService

ParamTypeDescription
toggleModeobject

the toggle mode

_init() ⇒ Promise

Init the service.

Kind: instance abstract method of AbstractAlexaService
Access: protected

_isProductRegistered() ⇒ Promise.<Boolean>

Allows to test if current device is registered

Kind: instance abstract method of AbstractAlexaService
Access: protected

_startProductRegistration() ⇒ Promise

Allows to start current device registration

Kind: instance abstract method of AbstractAlexaService
Access: protected

_stopProductRegistration() ⇒ Promise

Allows to stop current device registration

Kind: instance abstract method of AbstractAlexaService
Access: protected

_unregisterProduct() ⇒ Promise

Allows to unregister current device

Kind: instance abstract method of AbstractAlexaService
Access: protected

_enableAudioFeedback(enable) ⇒ Promise.<Number>

Allows to enable audio feedback

Kind: instance abstract method of AbstractAlexaService
Access: protected

ParamTypeDescription
enableBoolean

True to enable

_isAudioFeedbackEnabled() ⇒ Promise.<Boolean>

Returns true if audio feedback is enabled, false else

Kind: instance method of AbstractAlexaService
Returns: Promise.<Boolean> - Returns true if audio feedback is enabled, false else

_setLanguage(lng) ⇒ Promise

Set a new language for Amazon SDK

Kind: instance method of AbstractAlexaService

ParamTypeDescription
lngString

Language to set

_getCurrentLanguage() ⇒ Promise.<String>

Returns the current language set in the Amazon SDK

Kind: instance method of AbstractAlexaService
Returns: Promise.<String> - Returns the current language set in the Amazon SDK

_getLanguageList() ⇒ Promise.<String>

Returns the supported languages from Amazon SDK

Kind: instance method of AbstractAlexaService
Returns: Promise.<String> - Returns the supported languages from Amazon SDK

_tapToTalk() ⇒ Promise

Just a way to trigger Alexa manually

Kind: instance abstract method of AbstractAlexaService
Access: protected

_playbackButtonPressed(button) ⇒ Promise

Method to inform Alexa that a playback button has been pressed

Kind: instance abstract method of AbstractAlexaService
Access: protected

ParamTypeDescription
buttonobject

the pressed button

_playbackModeToggle(toggleMode) ⇒ Promise

AMethod to inform Alexa that a playback mode has been toggled

Kind: instance abstract method of AbstractAlexaService
Access: protected

ParamTypeDescription
toggleModeobject

the toggle mode

_isActivated() ⇒ Promise.<boolean>

get activation status

Kind: instance abstract method of AbstractAlexaService
Access: protected

_activate() ⇒ Promise

Allow to activate the product

Kind: instance abstract method of AbstractAlexaService
Access: protected

_deactivate() ⇒ Promise

Allow to deactivate the product

Kind: instance abstract method of AbstractAlexaService
Access: protected

_onPairingCode(data) ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

ParamTypeDescription
datadata

Pairing code and url.

_onPairingDone() ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

_onPairingExpired(error) ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

ParamTypeDescription
errorError

Paring error.

_onPairingFailed(error) ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

ParamTypeDescription
errorError

Paring error.

_onPairingPending() ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

_onListeningStarted() ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

_onListeningActive() ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

_onListeningStopped() ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

_onSpeakingStarted() ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

_onSpeakingStopped() ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

_onThinking() ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

_onCardsChange(params) ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

ParamTypeDescription
paramsObject

the parameters

params.statusNumber

the card/player status

params.dataObject

the card/player data

_onPlayerChange(params) ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

ParamTypeDescription
paramsObject

the parameters

params.statusNumber

the card/player status

params.dataObject

the card/player data

_onMusicStop() ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

_onMicOff() ⇒ Promise

Kind: instance method of AbstractAlexaService
Access: protected

_onSmartScreenStart() ⇒ Promise

Triggered when the Alexa Smart Screen starts

Kind: instance method of AbstractAlexaService
Access: protected

_onSmartScreenStop() ⇒ Promise

Triggered when the Alexa Smart Screen stops

Kind: instance method of AbstractAlexaService
Access: protected