Gio.DBusObjectManagerClient.new_for_bus_sync
function new_for_bus_sync(bus_type: Gio.BusType, 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_for_bus_sync() }
Like Gio.DBusObjectManagerClient.new_sync but takes a Gio.BusType instead of a Gio.DBusConnection.
This is a synchronous failable constructor - the calling thread is blocked until a reply is received. See Gio.DBusObjectManagerClient.new_for_bus for the asynchronous version.
Since 2.30
- bus_type
A Gio.BusType.
- flags
Zero or more flags from the Gio.DBusObjectManagerClientFlags enumeration.
- name
The owner of the control object (unique or well-known name).
- 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.