Asynchronously prompt a user for a decision.
The type can be one of "info", "warning", "question" or "error", to include an icon in the message prompt; anything else
results in no icon in the message.
If button_captions is null or empty list, then only one button is shown in the prompt, a
"Dismiss" button.
When the operation is finished, callback will be called. You can then call prompt.end to get the
result of the operation.
| this |
an UserPrompter |
| type |
type of the prompt; can be null |
| title |
window title of the prompt; can be null |
| primary_text |
primary text of the prompt; can be null |
| secondary_text |
secondary text of the prompt; can be null |
| use_markup |
whether both texts are with markup |
| button_captions |
captions of buttons to use in the message; can be null |
| cancellable |
optional Cancellable object, or null |
| callback |
a TaskReadyCallback to call when the request is satisfied |
| user_data |
data to pass to the callback function |