trust_prompt_sync


Description:

[ Version ( since = "3.8" ) ]
public TrustPromptResponse trust_prompt_sync (NamedParameters parameters, Cancellable? cancellable = null) throws Error

Asks a user a trust prompt with given parameters, and returns what user responded.

This blocks until the response is delivered.

Parameters:

this

an Backend

parameters

an NamedParameters with values for the trust prompt

cancellable

optional Cancellable object, or null

Returns:

an TrustPromptResponse what user responded

Note: The function can return also e_trust_prompt_response_unknown, it's on error or if user closes the trust prompt dialog with other than the offered buttons. Usual behaviour in such case is to treat it as a temporary reject.