Package org.gnome.gio
Interface DBusProxy.GPropertiesChangedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
DBusProxy
- 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 DBusProxy.GPropertiesChangedCallback
extends FunctionPointer
Functional interface declaration of the
GPropertiesChangedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Emitted when one or more D-Bus properties onproxy
changes.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceDBusProxy, MemorySegment changedProperties, MemorySegment invalidatedProperties) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted when one or more D-Bus properties onproxy
changes. The local cache has already been updated when this signal fires. Note that bothchangedProperties
andinvalidatedProperties
are guaranteed to never benull
(either may be empty though).If the proxy has the flag
DBusProxyFlags.GET_INVALIDATED_PROPERTIES
set, theninvalidatedProperties
will always be empty.This signal corresponds to the
PropertiesChanged
D-Bus signal on theorg.freedesktop.DBus.Properties
interface. -
upcall
default void upcall(MemorySegment sourceDBusProxy, MemorySegment changedProperties, MemorySegment invalidatedProperties) Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.glib.Variant, java.lang.String[])
is executed. -
toCallback
Creates a native function pointer to theupcall(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
-