Package org.gnome.gio
Interface DBusObjectManagerClient.InterfaceProxySignalCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
DBusObjectManagerClient
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface DBusObjectManagerClient.InterfaceProxySignalCallback
extends FunctionPointer
Functional interface declaration of the
InterfaceProxySignalCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(DBusObjectProxy objectProxy, DBusProxy interfaceProxy, String senderName, String signalName, Variant parameters) Emitted when a D-Bus signal is received oninterfaceProxy
.default MemorySegment
toCallback
(Arena arena) default void
upcall
(MemorySegment sourceDBusObjectManagerClient, MemorySegment objectProxy, MemorySegment interfaceProxy, MemorySegment senderName, MemorySegment signalName, MemorySegment parameters) Theupcall
method is called from native code.
-
Method Details
-
run
void run(DBusObjectProxy objectProxy, DBusProxy interfaceProxy, String senderName, String signalName, Variant parameters) Emitted when a D-Bus signal is received oninterfaceProxy
.This signal exists purely as a convenience to avoid having to connect signals to all interface proxies managed by
manager
.This signal is emitted in the [thread-default main context][g-main-context-push-thread-default] that
manager
was constructed in. -
upcall
default void upcall(MemorySegment sourceDBusObjectManagerClient, MemorySegment objectProxy, MemorySegment interfaceProxy, MemorySegment senderName, MemorySegment signalName, MemorySegment parameters) Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gio.DBusObjectProxy, org.gnome.gio.DBusProxy, java.lang.String, java.lang.String, org.gnome.glib.Variant)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-