DBusConnection.emitSignal

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

class DBusConnection
int
emitSignal

Parameters

destinationBusName string

The unique bus name for the destination for the signal or NULL to emit to all listeners. [allow-none]

objectPath string

Path of remote object.

interfaceName string

D-Bus interface to emit a signal on.

signalName string

The name of the signal to emit.

parameters Variant

A GVariant tuple with parameters for the signal or NULL if not passing parameters. [allow-none]

Return Value

Type: int

TRUE unless error is set.

Throws

GException on failure.

Meta