registerObject
open fun registerObject(objectPath: String, interfaceInfo: DBusInterfaceInfo, methodCallClosure: <Error class: unknown class>? = null, getPropertyClosure: <Error class: unknown class>? = null, setPropertyClosure: <Error class: unknown class>? = null): <Error class: unknown class><<Error class: unknown class>>
Version of g_dbus_connection_register_object() using closures instead of a #GDBusInterfaceVTable for easier binding in other languages.
Return
0 if @error is set, otherwise a registration ID (never 0) that can be used with g_dbus_connection_unregister_object() .
Since
2.46
Parameters
objectPath
The object path to register at.
interfaceInfo
Introspection data for the interface.
methodCallClosure
#GClosure for handling incoming method calls.
getPropertyClosure
#GClosure for getting a property.
setPropertyClosure
#GClosure for setting a property.