Gio.DBusObjectManagerClient.new_sync
function new_sync(connection: Gio.DBusConnection, flags: Gio.DBusObjectManagerClientFlags, name: String, object_path: String, get_proxy_type_func: Gio.DBusProxyTypeFunc, cancellable: Gio.Cancellable): Gio.DBusObjectManagerClient { // Gjs wrapper for g_dbus_object_manager_client_new_sync() }
Creates a new Gio.DBusObjectManagerClient object.
This is a synchronous failable constructor - the calling thread is blocked until a reply is received. See Gio.DBusObjectManagerClient.new for the asynchronous version.
Since 2.30
- connection
- flags
Zero or more flags from the Gio.DBusObjectManagerClientFlags enumeration.
- name
The owner of the control object (unique or well-known name), or null when not using a message bus connection.
- object_path
The object path of the control object.
- get_proxy_type_func
A Gio.DBusProxyTypeFunc function or null to always construct Gio.DBusProxy proxies.
- cancellable
A Gio.Cancellable or null
- Returns
A Gio.DBusObjectManagerClient object or null if @error is set. Free with GObject.Object.prototype.unref.