Gtk.Application.prototype.is_inhibited

function is_inhibited(flags:Gtk.ApplicationInhibitFlags):Boolean {
    // Gjs wrapper for gtk_application_is_inhibited()
}

Determines if any of the actions specified in flags are currently inhibited (possibly by another application).

Since 3.4

flags

what types of actions should be queried

Returns

true if any of the actions specified in flags are inhibited