Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AlexaContext

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.

Hierarchy

  • AlexaContext

Index

Constructors

constructor

  • new AlexaContext(_skillURL: string, _interactionModel: InteractionModel, _audioPlayer: AudioPlayer, _applicationID?: string): AlexaContext

Methods

accessToken

  • accessToken(): string

activeSession

  • activeSession(): boolean

applicationID

  • applicationID(): string

audioPlayer

  • audioPlayer(): AudioPlayer

audioPlayerEnabled

  • audioPlayerEnabled(): boolean

endSession

  • endSession(): void

interactionModel

  • interactionModel(): InteractionModel

newSession

  • newSession(): void

session

setAccessToken

  • setAccessToken(token: string): void

setUserID

  • setUserID(userID: string): void

skillURL

  • skillURL(): string

userID

  • userID(): string

Generated using TypeDoc