Service.promptSync

Perform prompting for a #SecretPrompt.

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 <literal>prompt_sync</literal> virtual method to change the behavior of the prompting. The default behavior is to simply run secret_prompt_perform_sync() on the prompt with a %NULL <literal>window_id</literal>.

class Service
Variant
promptSync
(,
Cancellable cancellable
,
VariantType returnType
)

Parameters

prompt Prompt

the prompt

cancellable Cancellable

optional cancellation object

returnType VariantType

the variant type of the prompt result

Return Value

Type: Variant

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

Throws

GException on failure.

Meta