Add a fragment to the prompt.
Prompt fragment
Add a fragment to the reprompt.
Reprompt fragment
Build the response.
Get the complete prompt.
Concatenates the fragments with a single space between each.
Get the complete reprompt.
Concatenates the fragments with a single space between each.
Builds and returns the complete response.
Determines if a 'display or APL' directive has been added to the response.
Disabled. Use addRepromptFragment and withRepromptPlayBehavior.
Sets the displayUsed flag to indicate if the Response includes content for the device display.
Note: calling .withSimpleCard()
, .withStandardCard()
,
.addAPLRenderDocumentDirective()
or
.addDirective(type=Alexa.Presentation)
sets this to true
automatically.
Usage:
Disabled. Use addPromptFragment and withPromptPlayBehavior.
Set the prompt play behavior to associate with the complete prompt.
Set the reprompt play behavior to associate with the complete prompt.
Set the 'shouldEndSession' flag
See https://developer.amazon.com/en-GB/docs/alexa/custom-skills/manage-skill-session-and-session-attributes.html#session-lifecycle for full details.
Usage:
ControlResultBuilder
such as when handing a turn initialization exception in ControlManager.handleInternalError
true to end the session, false to leave the session open, undefined|null to keep session alive with microphone closed (APL devices only).
A specialized ResponseBuilder for use with Controls framework
This differs from the the regular @see ResponseBuilder in a couple of ways:
addPromptFragment()
andaddRepromptFragment()
.withShouldEndSession()
is disabled as the information should be provided via seeControlResultBuilder
duringControl.handle()
andControl.takeInitiative()