Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SkillContext

Manages Session, Context and both related objects.

Hierarchy

  • SkillContext

Index

Constructors

  • new SkillContext(__namedParameters?: { applicationId?: string; context?: Context; locale?: string; session?: Session }): SkillContext

Properties

applicationId: string = ...
context: Context
locale: string
session: Session

Methods

  • Sets new Context object.

    Parameters

    • context: Context

      Context object you want to set.

    Returns void

  • setDisplay(viewport?: ViewportState): void
  • Utility method for setting display information to context property. This method sets Alexa.Presentation.APL as supported interface and viewport to viewport in Context.

    Parameters

    • viewport: ViewportState = {}

      Viewport object you want to set.

    Returns void

  • Sets new Session object.

    Parameters

    • session: Session

      Session object you want to set.

    Returns void

Generated using TypeDoc