Secret.Service::prompt_sync

function vfunc_prompt_sync(prompt: Secret.Prompt, cancellable: Gio.Cancellable, return_type: GLib.VariantType): GLib.Variant {
}
  

Perform prompting for a Secret.Prompt.

Runs a prompt and performs the prompting. Returns a variant result if the prompt was completed and not dismissed. The type of result depends on the action the prompt is completing, and is defined in the Secret Service DBus API specification.

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_sync</literal> virtual method to change the behavior of the prompting. The default behavior is to simply run Secret.Prompt.prototype.perform_sync on the prompt with a null <literal>window_id</literal>.

prompt

the prompt

cancellable

optional cancellation object

return_type

the variant type of the prompt result

Returns

null if the prompt was dismissed or an error occurred, a variant result if the prompt was successful