How to use the ask-sdk-core.PlainTextContentHelper function in ask-sdk-core

To help you get started, we’ve selected a few ask-sdk-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexa / alexa-cookbook / feature-demos / skill-demo-display-directive / lambda / custom / index.js View on Github external
data.forEach((x) => {
        const stateImage = new Alexa.ImageHelper().withDescription(`${x.StateName} state flag`);
        for (let y = 0; y < imgHeight.length; y += 1) {
          stateImage.addImageInstance(getImageUrl(imgHeight[y], imgWidth[y], x.Abbreviation));
        }
        statesList.push({
          token: x.Abbreviation,
          textContent: new Alexa.PlainTextContentHelper()
            .withPrimaryText(x.StateName)
            .withSecondaryText(`Abbreviation: ${x.Abbreviation}`)
            .withTertiaryText(`Capital: ${x.Capital}`)
            .getTextContent(),
          image: stateImage.getImage(),
        });
      });
      responseBuilder.addRenderTemplateDirective({