Gio.DBusProxy.new_for_bus
function new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo, name: String, object_path: String, interface_name: String, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_dbus_proxy_new_for_bus() }
Like Gio.DBusProxy.new 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.
- callback
Callback function to invoke when the proxy is ready.