Gio.DBusObjectManagerServer.new

function new(object_path: String): Gio.DBusObjectManagerServer {
    // Gjs wrapper for g_dbus_object_manager_server_new()
}
  

Creates a new Gio.DBusObjectManagerServer object.

The returned server isn't yet exported on any connection. To do so, use Gio.DBusObjectManagerServer.prototype.set_connection. Normally you want to export all of your objects before doing so to avoid <ulink url="http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager">InterfacesAdded</ulink> signals being emitted.

Since 2.30

object_path

The object path to export the manager object at.

Returns

A Gio.DBusObjectManagerServer object. Free with GObject.Object.prototype.unref.