Gcr.Prompt.prototype.confirm

function confirm(cancellable: Gio.Cancellable): Gcr.PromptReply {
    // Gjs wrapper for gcr_prompt_confirm()
}
  

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.PromptReply.continue will be returned if the user confirms the prompt. The return value will also be Gcr.PromptReply.cancel if the user cancels or if an error occurs. Check the @error argument to tell the difference.

cancellable

optional cancellation object

Returns

the reply from the prompt