Package | Description |
---|---|
com.amazon.ask.dispatcher.request.handler | |
com.amazon.ask.response |
Modifier and Type | Field and Description |
---|---|
protected ResponseBuilder |
HandlerInput.responseBuilder
Response Builder.
|
Modifier and Type | Method and Description |
---|---|
ResponseBuilder |
HandlerInput.getResponseBuilder()
Returns a
ResponseBuilder that can be used to construct a complete skill response containing speech,
directives, etc. |
Modifier and Type | Method and Description |
---|---|
ResponseBuilder |
ResponseBuilder.addAudioPlayerClearQueueDirective(ClearBehavior clearBehavior)
Adds an AudioPlayer
ClearQueueDirective to the response. |
ResponseBuilder |
ResponseBuilder.addAudioPlayerPlayDirective(PlayBehavior playBehavior,
Long offsetInMilliseconds,
String expectedPreviousToken,
String token,
String url)
Adds an AudioPlayer
PlayDirective to the response. |
ResponseBuilder |
ResponseBuilder.addAudioPlayerPlayDirective(PlayBehavior playBehavior,
Long offsetInMilliseconds,
String expectedPreviousToken,
String token,
String url,
AudioItemMetadata metadata)
Adds an AudioPlayer
PlayDirective to the response. |
ResponseBuilder |
ResponseBuilder.addAudioPlayerStopDirective()
Adds an AudioPlayer
StopDirective to the response. |
ResponseBuilder |
ResponseBuilder.addConfirmIntentDirective(Intent updatedIntent)
Adds a Dialog
ConfirmIntentDirective to the response. |
ResponseBuilder |
ResponseBuilder.addConfirmSlotDirective(String slotName,
Intent updatedIntent)
Adds a Dialog
ConfirmSlotDirective to the response. |
ResponseBuilder |
ResponseBuilder.addDelegateDirective(Intent updatedIntent)
Adds a Dialog
DelegateDirective to the response. |
ResponseBuilder |
ResponseBuilder.addDirective(Directive directive)
Adds a given
Directive to the response. |
ResponseBuilder |
ResponseBuilder.addElicitSlotDirective(String slotName,
Intent updatedIntent)
Adds a Dialog
ElicitSlotDirective to the response. |
ResponseBuilder |
ResponseBuilder.addExperimentTrigger(String experimentId)
Adds a given experimentId to the Experiment Trigger response.
|
ResponseBuilder |
ResponseBuilder.addHintDirective(String hintText)
Adds a
HintDirective to the response. |
ResponseBuilder |
ResponseBuilder.addRenderTemplateDirective(Template template)
Adds a Display
RenderTemplateDirective to the response. |
ResponseBuilder |
ResponseBuilder.addVideoAppLaunchDirective(String source,
String title,
String subtitle)
Adds a VideoApp
LaunchDirective to the response to play a video. |
ResponseBuilder |
ResponseBuilder.withApiResponse(Object apiResponse)
Sets the
Object object in the response. |
ResponseBuilder |
ResponseBuilder.withAskForPermissionsConsentCard(List<String> permissions)
Sets a
AskForPermissionsConsentCard card on the response. |
ResponseBuilder |
ResponseBuilder.withCanFulfillIntent(CanFulfillIntent canFulfillIntent)
Helper method for adding canFulfillIntent to response.
|
ResponseBuilder |
ResponseBuilder.withCard(Card card)
Sets a
Card object on the response. |
ResponseBuilder |
ResponseBuilder.withLinkAccountCard()
Sets a
LinkAccountCard on the response. |
ResponseBuilder |
ResponseBuilder.withReprompt(String text)
Sets
Reprompt speech on the response. |
ResponseBuilder |
ResponseBuilder.withReprompt(String text,
Directive directive)
Sets
Reprompt speech on the response. |
ResponseBuilder |
ResponseBuilder.withReprompt(String text,
Directive directive,
PlayBehavior playBehavior)
Sets
Reprompt speech on the response. |
ResponseBuilder |
ResponseBuilder.withReprompt(String text,
PlayBehavior playBehavior)
Sets
Reprompt speech on the response. |
ResponseBuilder |
ResponseBuilder.withShouldEndSession(Boolean shouldEndSession)
Sets whether the session should end after this response.
|
ResponseBuilder |
ResponseBuilder.withSimpleCard(String cardTitle,
String cardText)
Sets a simple
Card on the response with the specified title and content. |
ResponseBuilder |
ResponseBuilder.withSpeech(String speechText)
Sets
OutputSpeech on the response. |
ResponseBuilder |
ResponseBuilder.withSpeech(String speechText,
PlayBehavior playBehavior)
Sets
OutputSpeech on the response. |
ResponseBuilder |
ResponseBuilder.withStandardCard(String cardTitle,
String cardText,
Image image)
Sets a standard
Card on the response with the specified title, content and image. |
Copyright © 2023. All rights reserved.