Interface Introspectable


public interface Introspectable
The org.freedesktop.DBus.Introspectable interface provides introspection data for D-Bus objects. This allows clients to discover the interfaces, methods, signals, and properties supported by an object at runtime.

The introspection data is returned as an XML document following the D-Bus introspection format. This is the standard mechanism for service discovery in D-Bus.

Example introspection data:


 <node>
   <interface name="org.example.MyInterface">
     <method name="MyMethod">
       <arg name="input" type="s" direction="in"/>
       <arg name="output" type="s" direction="out"/>
     </method>
     <signal name="MySignal">
       <arg name="value" type="i"/>
     </signal>
     <property name="MyProperty" type="s" access="readwrite"/>
   </interface>
 </node>
 
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the introspection data for the object in XML format.
  • Method Details

    • introspect

      DBusString introspect()
      Returns the introspection data for the object in XML format.

      The returned XML document describes all interfaces implemented by the object, including their methods, signals, and properties. Child nodes in the object hierarchy are also listed.

      Returns:
      A DBusString containing the XML introspection data