DBusProxy.newForBusSync

Like gio.dbus_proxy.DBusProxy.newSync 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.

Return Value

Type: gio.dbus_proxy.DBusProxy

A #GDBusProxy or null if error is set. Free with gobject.object.ObjectG.unref.