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 TypeMethodDescriptionvoidEmitted when one or more D-Bus properties onproxychanges.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment sourceDBusProxy, MemorySegment changedProperties, MemorySegment invalidatedProperties) Theupcallmethod is called from native code.
-
Method Details
-
run
Emitted when one or more D-Bus properties onproxychanges. The local cache has already been updated when this signal fires. Note that bothchangedPropertiesandinvalidatedPropertiesare guaranteed to never benull(either may be empty though).If the proxy has the flag
DBusProxyFlags.GET_INVALIDATED_PROPERTIESset, theninvalidatedPropertieswill always be empty.This signal corresponds to the
PropertiesChangedD-Bus signal on theorg.freedesktop.DBus.Propertiesinterface.- Since:
- 2.26
-
upcall
default void upcall(MemorySegment sourceDBusProxy, MemorySegment changedProperties, MemorySegment invalidatedProperties) Theupcallmethod 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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-