Add the value to state of this control.
Value
Clear the state of this control.
Evaluate an APL document/data source prop.
act
The input object
Constant or function producing a map of key:value pairs
Evaluate a boolean prop.
Constant or function producing boolean
The input object
Evaluate a prompt prop.
act
Constant or function producing String or List-of-Strings
Input object
Gets the Control's state as an object that is serializable.
Only durable state should be included and the object should be
serializable with a straightforward application of
JSON.stringify(object)
.
Default: {return this.state;}
Usage:
.state
variable
and only store simple data.Framework behavior:
JSON.stringify
.control.setSerializableState(serializedState)
.Serializable object defining the state of the Control
Determines if the Control's value is ready for use by other parts of the skill.
Note:
isReady === !canTakeInitiative
because isReady
implies
that no further discussion is required and thus there is no need to take the
initiative.Input object.
true
if the control has no further questions to ask the user such as
elicitation, clarification or confirmation.
Reestablishes the state of the control.
Default implementations:
Control
: reestablishes the state via
this.setSerializableState(state)
.ContainerControl
: reestablishes the state
and recursively
reestablishes state for all children.DynamicContainerControl
: reestablishes the state
, rebuilds any
dynamic child controls, and recursively reestablishes state for all
children.Sets the state from a serialized state object.
Default: {this.state = serializedState;}
Usage:
Framework behavior:
Serializable object defining the state of the Control
Merges the user-provided props with the default props.
Any property defined by the user-provided data overrides the defaults.
A Control that obtains multiple values from the user by presenting a list of available options using voice and/or APL.
The type of value to obtain is defined by
this.slotType
.Capabilities:
Intents that can be handled:
GeneralControlIntent
: E.g."no, clear all names"
{ValueType}_ValueControlIntent
: E.g. "add Elvis, May and Max".AMAZON.YesIntent
,AMAZON.NoIntent
APL events that can be handled:
Limitations:
AMAZON.SearchQuery
slot type.