confirm


Description:

public PromptReply confirm (Cancellable? cancellable = null) throws Error

Prompts for confirmation asking a cancel/continue style question.

Set the various properties on the prompt before calling this function to represent the question correctly.

This method will block until the a response is returned from the prompter.

gcr_prompt_reply_continue will be returned if the user confirms the prompt. The return value will also be gcr_prompt_reply_cancel if the user cancels or if an error occurs. Check the throws argument to tell the difference.

Parameters:

this

a prompt

cancellable

optional cancellation object

Returns:

the reply from the prompt