Interface DBusInterfaceSetPropertyFunc
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Generated("org.javagi.JavaGI")
public interface DBusInterfaceSetPropertyFunc
extends FunctionPointer
Functional interface declaration of the DBusInterfaceSetPropertyFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun(DBusConnection connection, @Nullable String sender, String objectPath, String interfaceName, String propertyName, Variant value, GError[] error) The type of thesetPropertyfunction inGDBusInterfaceVTable.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment)method.default intupcall(MemorySegment connection, MemorySegment sender, MemorySegment objectPath, MemorySegment interfaceName, MemorySegment propertyName, MemorySegment value, MemorySegment error, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
boolean run(DBusConnection connection, @Nullable String sender, String objectPath, String interfaceName, String propertyName, Variant value, GError[] error) The type of thesetPropertyfunction inGDBusInterfaceVTable.- Parameters:
connection- AGDBusConnection.sender- The unique bus name of the remote caller ornullif not specified by the caller, e.g. on peer-to-peer connections.objectPath- The object path that the method was invoked on.interfaceName- The D-Bus interface name for the property.propertyName- The name of the property to get the value of.value- The value to set the property to.error- Return location for error.- Returns:
trueif the property was set tovalue,falseiferroris set.- Since:
- 2.26
-
upcall
default int upcall(MemorySegment connection, MemorySegment sender, MemorySegment objectPath, MemorySegment interfaceName, MemorySegment propertyName, MemorySegment value, MemorySegment error, MemorySegment userData) Theupcallmethod is called from native code. The parameters are marshaled andrun(DBusConnection, String, String, String, String, Variant, GError[])is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-