Bus.connectMessage

gulong connectMessage(T)(string detail = null, T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gst.message.Message))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gst.bus.Bus))) && Parameters!T.length < 3)

Connect to Message signal.

A message has been posted on the bus. This signal is emitted from a #GSource added to the mainloop. this signal will only be emitted when there is a #GMainLoop running.

Parameters

detailSignal detail or null (default)
callbacksignal callback delegate or function to connect void callback(gst.message.Message message, gst.bus.Bus bus) message the message that has been posted asynchronously (optional) bus the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID