Service.promptSync

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 #SecretServiceClass vfuncService.prompt_sync virtual method to change the behavior of the prompting. The default behavior is to simply run secret.prompt.Prompt.performSync on the prompt with a null window_id.

Parameters

prompt secret.prompt.Prompt

the prompt

cancellable gio.cancellable.Cancellable

optional cancellation object

returnType glib.variant_type.VariantType

the variant type of the prompt result

Return Value

Type: glib.variant.VariantG

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