API Reference / @gtkx/runtime / connectSignal
Function: connectSignal()
connectSignal(
instance,signal,spec):bigint
Defined in: packages/runtime/src/signal.ts:421
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
bigint