Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SkillContext

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

  • SkillContext

Index

Constructors

constructor

  • new SkillContext(interactionModel: InteractionModel, audioPlayer: AudioPlayer, _locale: string, _applicationID?: string): SkillContext

Methods

accessToken

  • accessToken(): string

activeSession

  • activeSession(): boolean

apiAccessToken

  • apiAccessToken(): string

apiEndpoint

  • apiEndpoint(): string

applicationID

  • applicationID(): string

audioPlayer

device

dialogManager

endSession

  • endSession(): void

interactionModel

  • interactionModel(): InteractionModel

locale

  • locale(): string

newSession

  • newSession(): void

session

setAccessToken

  • setAccessToken(token: string): void

user

Generated using TypeDoc