DBusProxy.newForBus

Like gio.dbus_proxy.DBusProxy.new_ but takes a #GBusType instead of a #GDBusConnection.

#GDBusProxy is used in this example[gdbus-wellknown-proxy].

Parameters

busType gio.types.BusType

A #GBusType.

flags gio.types.DBusProxyFlags

Flags used when constructing the proxy.

info gio.dbus_interface_info.DBusInterfaceInfo

A #GDBusInterfaceInfo specifying the minimal interface that proxy conforms to or null.

name string

A bus name (well-known or unique).

objectPath string

An object path.

interfaceName string

A D-Bus interface name.

cancellable gio.cancellable.Cancellable

A #GCancellable or null.

callback gio.types.AsyncReadyCallback

Callback function to invoke when the proxy is ready.