AttachmentPrompt Class
- java.
lang. Object - com.
microsoft. bot. dialogs. Dialog - com.
microsoft. bot. dialogs. prompts. Prompt<T> - com.
microsoft. bot. dialogs. prompts. AttachmentPrompt
- com.
- com.
- com.
public class AttachmentPrompt
extends Prompt<java.util.List<Attachment>>
Prompts a user to upload attachments, like images.
Constructor Summary
| Constructor | Description |
|---|---|
| AttachmentPrompt(String dialogId) |
Initializes a new instance of the AttachmentPrompt class. |
| AttachmentPrompt(String dialogId, PromptValidator<List<Attachment>> validator) |
Initializes a new instance of the AttachmentPrompt class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| protected java.util.concurrent.CompletableFuture<java.lang.Void> |
onPrompt(TurnContext turnContext, Map<String,Object> state, PromptOptions options, Boolean isRetry)
Prompts the user for input. |
|
protected
java.util.concurrent.CompletableFuture<Prompt |
onRecognize(TurnContext turnContext, Map<String,Object> state, PromptOptions options)
Attempts to recognize the user's input. |
Methods inherited from Dialog
Methods inherited from Prompt
Methods inherited from java.lang.Object
Constructor Details
AttachmentPrompt
public AttachmentPrompt(String dialogId)
Initializes a new instance of the AttachmentPrompt class.
Parameters:
AttachmentPrompt
public AttachmentPrompt(String dialogId, PromptValidator> validator)
Initializes a new instance of the AttachmentPrompt class.
Parameters:
Method Details
onPrompt
protected CompletableFuture
Prompts the user for input.
Overrides:
AttachmentPrompt.onPrompt(TurnContext turnContext, Map<String,Object> state, PromptOptions options, Boolean isRetry)Parameters:
Returns:
onRecognize
protected CompletableFuture
Attempts to recognize the user's input.
Overrides:
AttachmentPrompt.onRecognize(TurnContext turnContext, Map<String,Object> state, PromptOptions options)Parameters:
Returns: