github alexa/alexa-skills-kit-sdk-for-nodejs 1.0.21
Support for BodyTemplate7

latest releases: v2.14.0, v2.12.1, v2.12.0...
6 years ago

This release adds SDK support for the BodyTemplate7 for display interface

An example to add bodyTemplate7 to Display.RenderTemplate is as follows:

    const builder = new Alexa.templateBuilders.BodyTemplate7Builder();
    const template = builder.setBackgroundImage(Alexa.utils.ImageUtils.makeImage('http://url/to/my/backgroundimg.png'))
                                        .setBackButtonBehavior('HIDDEN')
                                        .setImage(Alexa.utils.ImageUtils.makeImage('http://url/to/my/img.png'))
                                        .build();
    this.response.speak('Rendering a template!')
                .renderTemplate(template);
    this.emit(':responseReady');

Don't miss a new alexa-skills-kit-sdk-for-nodejs release

NewReleases is sending notifications on new releases.