API Reference / @gtkx/runtime / connectSignal
Function: connectSignal()
connectSignal(
instance,signal,spec):number
Defined in: runtime/dist/signal.d.ts:22
Connects a handler to a GObject signal on an instance and returns the handler id.
Parameters
instance
object
Emitter to connect to.
signal
string
Signal name, optionally including a ::detail suffix.
spec
SignalConnectSpec
Callback descriptor, handler function, and whether to run after the default handler.
Returns
number