emitSignal

open fun emitSignal(    destinationBusName: String? = null,     objectPath: String,     interfaceName: String,     signalName: String,     parameters: <Error class: unknown class>? = null): <Error class: unknown class><Boolean>(source)

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 (%G_IO_ERROR_INVALID_ARGUMENT), or if @connection has been closed (%G_IO_ERROR_CLOSED).

Return

true unless @error is set

Since

2.26

Parameters

destinationBusName

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

objectPath

path of remote object

interfaceName

D-Bus interface to emit a signal on

signalName

the name of the signal to emit

parameters

a #GVariant tuple with parameters for the signal or null if not passing parameters