Interface: IntentHandler

IntentHandler

Interface for classes that can handle an intent
Source:

Methods

(static) getName() → {String}

Returns the name of the IntentHandler. If not set, SkillVC will attempt to determine one for you and add the function to your object
Source:
Returns:
The name of the IntentHandler
Type
String

getIntentsList() → {Array.String}

Return the list of intents that the implementing object can handle The default IntentHandlerManager in SkillVC supports specifying an intent name of 'launch' which will be invoked on a
Source:
Returns:
An array of the intent names that the implementing object can handle
Type
Array.String

handleIntent(event, context, svContext)

Called when an intent that maps to the implementing object is invoked. An intent that is executed should use call `context.succeed()` or `context.fail()` when completed
Parameters:
Name Type Description
event Object The event for the skill (from lambda)
context OBject The context for the skill (from lambda)
svContext SVContext The context of the execution
Source: