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

promptthe prompt
cancellableoptional cancellation object
returnTypethe 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

Throws

[ErrorWrap]