prompt
Description:
public async Variant prompt (Prompt prompt, VariantType? return_type, Cancellable? cancellable) throws Error
Perform prompting for a [classPrompt
].
This function is called by other parts of this library to handle prompts for the various actions that can require prompting.
Override the Service [vfuncService.prompt_async
] virtual method to
change the behavior of the prompting. The default behavior is to simply run [methodPrompt.perform
] on the prompt.
Parameters:
this |
the secret service |
prompt |
the prompt |
return_type |
the variant type of the prompt result |
cancellable |
optional cancellation object |
callback |
called when the operation completes |
user_data |
data to be passed to the callback |