Class: IntentHandlerProviderByMap

IntentHandlerProviderByMap

new IntentHandlerProviderByMap(map, options)

Uses the passed in map to provide intentHandlers. This allows the most control of SkillVC's loading of intents however it requires the most knowledge of how the system works. This should only be used if you know what you are doing and want the utmost control.
Parameters:
Name Type Description
map Map The object structure of the raw intents to use.
options Object.<String, Object> Options for processing. See AbstractProviderByMap
Implements:
Source:
Example
{
	 'intentName' : new ClassThatImplementsIntentHandler(),
	 'anotherIntentName' : new ClassThatImplementsIntentHandler(),
	 etc...
}

Methods

processItem(items, itemId, map, options)

Since there is no processing required, it just returns the item that was passed in
Parameters:
Name Type Description
items Map Map of the items being processed
itemId String The Id of the item to process
map Object The map being processed
options Object Any options that are being passed to the ItemProcessor (can be null)
Implements:
Source:

(abstract) processItems(items, map, options)

Since there is no processing required, it just returns the map that was passed in
Parameters:
Name Type Description
items Map Map of the items being processed
map Object The map being processed
options Object Any options that are being passed to the ItemProcessor (can be null)
Implements:
Source: