Echo Show 10, Smart Motion Test Center

by Alexander Martin
Replay
Description

Before using this document, you should enable the Smart Motion Interface for your skill. Save this document as "smartMotionTestCenter.json" and use it in your skill as follows.

const Alexa = require('ask-sdk-core');
const smartMotionTestCenter = require('./smartMotionTestCenter.json');

const LaunchRequestHandler = {
  canHandle(handlerInput) {
    return Alexa.getRequestType(handlerInput.requestEnvelope) === 'LaunchRequest';
  },
  handle(handlerInput) {
    return handlerInput.responseBuilder
      .addDirective({
        type: 'Alexa.Presentation.APL.RenderDocument',
        token: 'SmartMotionTestCenter',
        document: smartMotionTestCenter
      })
      .withShouldEndSession(undefined)
      .getResponse();
  }
};

exports.handler = Alexa.SkillBuilders.custom()
  .addRequestHandlers(LaunchRequestHandler)
  .lambda();

More information about the Smart Motion extension can be found here.

Comments

Be the first to comment.