Service.promptAtDbusPathSync

Perform prompting for a #SecretPrompt.

Override the #SecretServiceClass <literal>prompt_async</literal> virtual method to change the behavior of the propmting. The default behavior is to simply run secret_prompt_perform() on the prompt.

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 method may block and should not be used in user interface threads.

class Service
Variant
promptAtDbusPathSync
(
string promptPath
,
Cancellable cancellable
,
VariantType returnType
)

Parameters

promptPath string

the D-Bus object path of 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