public class DefaultInteractionListener extends Object implements InteractionListener
| Constructor and Description |
|---|
DefaultInteractionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onInteractionError(Response response,
Exception e)
This method is invoked on error.
|
void |
onReadyForFulfillment(Response response)
This is invoked when all information required to fulfill a transaction
has been recovered.
|
void |
promptUserToRespond(Response response,
LexServiceContinuation continuation)
This is invoked when input is required from the user.
|
public void onReadyForFulfillment(Response response)
InteractionListeneronReadyForFulfillment in interface InteractionListenerresponse - Response, contains the service
response.public void promptUserToRespond(Response response, LexServiceContinuation continuation)
InteractionListenerpromptUserToRespond in interface InteractionListenerresponse - Response, contains the service
response.continuation - LexServiceContinuation, allows to
continue with the current transaction.public void onInteractionError(Response response, Exception e)
InteractionListeneronInteractionError in interface InteractionListenerresponse - Response, contains the service
response.e - error reported as Exception.Copyright © 2018. All rights reserved.