Gio.Application.prototype.hold

function hold(): void {
    // Gjs wrapper for g_application_hold()
}
  

Increases the use count of application.

Use this function to indicate that the application has a reason to continue to run. For example, Gio.Application.prototype.hold is called by GTK+ when a toplevel window is on the screen.

To cancel the hold, call Gio.Application.prototype.release.