Constructors
constructor
- new AlexaContext(_skillURL: string, _interactionModel: InteractionModel, _audioPlayer: AudioPlayer, _applicationID?: string): AlexaContext
-
Parameters
-
_skillURL: string
-
_interactionModel: InteractionModel
-
_audioPlayer: AudioPlayer
-
Optional _applicationID: string
Methods
audioPlayer
- audioPlayer(): AudioPlayer
audioPlayerEnabled
- audioPlayerEnabled(): boolean
interactionModel
- interactionModel(): InteractionModel
setAccessToken
- setAccessToken(token: string): void
setUserID
- setUserID(userID: string): void
Manages state of the Alexa device interaction across sessions.
Holds information about the user, the current session, as well as the AudioPlayer, if in use.
To emulate a user with a linked account, set the access token property.