AWSLexInteractionDelegate
Objective-C
@protocol AWSLexInteractionDelegate <NSObject>
@required
/*
* Sent to delegate when an error occured from service.
*/
- (void)interactionKit:(AWSLexInteractionKit *)interactionKit
onError:(NSError *)error;
@optional
/*
* Sent to delegate when the all the required slots are filled, and the the fullfillment is client side.
*/
- (void)interactionKit:(AWSLexInteractionKit *)interactionKit onDialogReadyForFulfillmentForIntent:(NSString *)intentName slots:(NSDictionary *)slots;
/*
* Sent to delegate incase you want to switch modes between text and voice input.
*/
- (void)interactionKit:(AWSLexInteractionKit *)interactionKit
switchModeInput:(AWSLexSwitchModeInput *)switchModeInput
completionSource:(AWSTaskCompletionSource<AWSLexSwitchModeResponse *> * _Nullable)completionSource;
/*
* Sent to delegate when the Switch mode requires a user to input a text. You should set the completion source result to the string that you get from the user. This ensures that the session attribute information is carried over from the previous request to the next one.
*/
- (void)interactionKitContinueWithText:(AWSLexInteractionKit *)interactionKit
completionSource:(AWSTaskCompletionSource<NSString *> *)completionSource;
@end
Swift
protocol AWSLexInteractionDelegate : NSObjectProtocol
Undocumented
-
Undocumented
Declaration
Objective-C
- (void)interactionKit:(AWSLexInteractionKit *)interactionKit onError:(NSError *)error;
Swift
func interactionKit(_ interactionKit: AWSLexInteractionKit, onError error: Error)
-
Undocumented
Declaration
Objective-C
- (void)interactionKit:(AWSLexInteractionKit *)interactionKit onDialogReadyForFulfillmentForIntent:(NSString *)intentName slots:(NSDictionary *)slots;
Swift
optional func interactionKit(_ interactionKit: AWSLexInteractionKit, onDialogReadyForFulfillmentForIntent intentName: String, slots: [AnyHashable : Any])
-
Undocumented
Declaration
Objective-C
- (void)interactionKit:(AWSLexInteractionKit *)interactionKit switchModeInput:(AWSLexSwitchModeInput *)switchModeInput completionSource:(AWSTaskCompletionSource<AWSLexSwitchModeResponse *> * _Nullable)completionSource;
Swift
optional func interactionKit(_ interactionKit: AWSLexInteractionKit, switchModeInput: AWSLexSwitchModeInput, completionSource: Any!)
-
Undocumented
Declaration
Objective-C
- (void)interactionKitContinueWithText:(AWSLexInteractionKit *)interactionKit completionSource:(AWSTaskCompletionSource<NSString *> *)completionSource;
Swift
optional func interactionKitContinue(withText interactionKit: AWSLexInteractionKit, completionSource: Any!)