Secret.Service.prototype.prompt
function prompt(prompt: Secret.Prompt, return_type: GLib.VariantType, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for secret_service_prompt() }
Perform prompting for a Secret.Prompt.
This function is called by other parts of this library to handle prompts for the various actions that can require prompting.
Override the Secret.ServiceClass <literal>prompt_async</literal> virtual method to change the behavior of the prompting. The default behavior is to simply run Secret.Prompt.prototype.perform on the prompt.
- prompt
the prompt
- return_type
the variant type of the prompt result
- cancellable
optional cancellation object
- callback
called when the operation completes