Gio.DBusConnection.prototype.emit_signal

function emit_signal(destination_bus_name: String, object_path: String, interface_name: String, signal_name: String, parameters: GLib.Variant): Boolean {
    // Gjs wrapper for g_dbus_connection_emit_signal()
}
  

Emits a signal.

If the parameters GVariant is floating, it is consumed.

This can only fail if parameters is not compatible with the D-Bus protocol.

Since 2.26

destination_bus_name

the unique bus name for the destination for the signal or null to emit to all listeners

object_path

path of remote object

interface_name

D-Bus interface to emit a signal on

signal_name

the name of the signal to emit

parameters

a GLib.Variant tuple with parameters for the signal or null if not passing parameters

Returns

true unless @error is set