Gio.DBusProxy.new_for_bus_sync
function new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo, name: String, object_path: String, interface_name: String, cancellable: Gio.Cancellable): Gio.DBusProxy { // Gjs wrapper for g_dbus_proxy_new_for_bus_sync() }
Like Gio.DBusProxy.new_sync but takes a Gio.BusType instead of a Gio.DBusConnection.
Gio.DBusProxy is used in this [example][gdbus-wellknown-proxy].
Since 2.26
- bus_type
A Gio.BusType.
- flags
Flags used when constructing the proxy.
- info
A Gio.DBusInterfaceInfo specifying the minimal interface that @proxy conforms to or null.
- name
A bus name (well-known or unique).
- object_path
An object path.
- interface_name
A D-Bus interface name.
- cancellable
A Gio.Cancellable or null.
- Returns
A Gio.DBusProxy or null if error is set. Free with GObject.Object.prototype.unref.