Gcr.Prompt.prototype.confirm_async

function confirm_async(cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for gcr_prompt_confirm_async()
}
  

Prompts for confirmation asking a cancel/continue style question. Set the various properties on the prompt before calling this method to represent the question correctly.

This method will return immediately and complete asynchronously.

cancellable

optional cancellation object

callback

called when the operation completes