DBusConnection.emitSignal

bool emitSignal(string destinationBusName, string objectPath, string interfaceName, string signalName, glib.variant.Variant parameters = null)

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 (gio.types.IOErrorEnum.InvalidArgument), or if connection has been closed (gio.types.IOErrorEnum.Closed).

Parameters

destinationBusNamethe unique bus name for the destination for the signal or null to emit to all listeners
objectPathpath of remote object
interfaceNameD-Bus interface to emit a signal on
signalNamethe name of the signal to emit
parametersa #GVariant tuple with parameters for the signal or null if not passing parameters

Returns

true unless error is set

Throws