Gtk.Clipboard.prototype.wait_for_targets

function wait_for_targets():Boolean {
    // Gjs wrapper for gtk_clipboard_wait_for_targets()
}

Returns a list of targets that are present on the clipboard, or null if there aren't any targets available. The returned list must be freed with GLib.free. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.

Since 2.4

Returns

true if any targets are present on the clipboard, otherwise false.