Package ch.bailu.gtk.gst
Schnittstelle Bus.OnBusFunc
- Umschließende Klasse:
Bus
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
onBusFunc
(CallbackHandler __self, Bus bus, Message message, Pointer user_data) Specifies the type of function passed to gst_bus_add_watch() or
gst_bus_add_watch_full(), which is called from the mainloop when a message
is available on the bus.
-
Methodendetails
-
onBusFunc
boolean onBusFunc(CallbackHandler __self, @Nonnull Bus bus, @Nonnull Message message, @Nullable Pointer user_data) Specifies the type of function passed to gst_bus_add_watch() or
gst_bus_add_watch_full(), which is called from the mainloop when a message
is available on the bus.
The message passed to the function will be unreffed after execution of this
function so it should not be freed in the function.
Note that this function is used as a #GSourceFunc which means that returning
%FALSE will remove the #GSource from the mainloop.- Parameter:
bus
- the #GstBus that sent the messagemessage
- the #GstMessageuser_data
- user data that has been given, when registering the handler- Gibt zurück:
- %FALSE if the event source should be removed.
-