prompt_sync


Description:

public virtual Variant prompt_sync (Prompt prompt, Cancellable? cancellable, VariantType return_type) throws Error

Perform prompting for a [classPrompt].

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 Service [vfuncService.prompt_sync] virtual method to change the behavior of the prompting. The default behavior is to simply run [methodPrompt.perform_sync] on the prompt with a null `window_id`.

Parameters:

this

the secret service

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