Class DBusObjectProxy

All Implemented Interfaces:
DBusObject, Proxy

@Generated("org.javagi.JavaGI") public class DBusObjectProxy extends GObject implements DBusObject
A GDBusObjectProxy is an object used to represent a remote object with one or more D-Bus interfaces. Normally, you don’t instantiate a GDBusObjectProxy yourself — typically DBusObjectManagerClient is used to obtain it.
Since:
2.30
  • Constructor Details

    • DBusObjectProxy

      public DBusObjectProxy(MemorySegment address)
      Create a DBusObjectProxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • DBusObjectProxy

      public DBusObjectProxy(DBusConnection connection, String objectPath)
      Creates a new GDBusObjectProxy for the given connection and object path.
      Parameters:
      connection - a GDBusConnection
      objectPath - the object path
      Since:
      2.30
    • DBusObjectProxy

      public DBusObjectProxy()
      Create a new DBusObjectProxy.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the DBusObjectProxy class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected DBusObjectProxy asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • getConnection

      public DBusConnection getConnection()
      Gets the connection that this DBusObjectProxy is for.
      Returns:
      A GDBusConnection. Do not free, the object is owned by proxy.
      Since:
      2.30
    • builder

      public static DBusObjectProxy.Builder<? extends DBusObjectProxy.Builder> builder()
      A DBusObjectProxy.Builder object constructs a DBusObjectProxy with the specified properties. Use the various set...() methods to set properties, and finish construction with DBusObjectProxy.Builder.build().
      Returns:
      the builder object