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.

Since:
2.26
See Also:
  • Method Details

    • run

      void run(@Nullable Variant changedProperties, @Nullable String @Nullable [] invalidatedProperties)

      Emitted when one or more D-Bus properties on proxy changes. The local cache has already been updated when this signal fires. Note that both changedProperties and invalidatedProperties are guaranteed to never be null (either may be empty though).

      If the proxy has the flag DBusProxyFlags.GET_INVALIDATED_PROPERTIES set, then invalidatedProperties will always be empty.

      This signal corresponds to the PropertiesChanged D-Bus signal on the org.freedesktop.DBus.Properties interface.

      Since:
      2.26
    • upcall

      default void upcall(MemorySegment sourceDBusProxy, MemorySegment changedProperties, MemorySegment invalidatedProperties)
      The upcall method is called from native code. The parameters are marshaled and run(Variant, String[]) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, MemorySegment, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer