DBusObjectManagerClient.newForBus

Like gio.dbus_object_manager_client.DBusObjectManagerClient.new_ but takes a #GBusType instead of a #GDBusConnection.

This is an asynchronous failable constructor. When the result is ready, callback will be invoked in the [thread-default main loop][g-main-context-push-thread-default] of the thread you are calling this method from. You can then call gio.dbus_object_manager_client.DBusObjectManagerClient.newForBusFinish to get the result. See gio.dbus_object_manager_client.DBusObjectManagerClient.newForBusSync for the synchronous version.

Parameters

busType gio.types.BusType

A #GBusType.

flags gio.types.DBusObjectManagerClientFlags

Zero or more flags from the #GDBusObjectManagerClientFlags enumeration.

name string

The owner of the control object (unique or well-known name).

objectPath string

The object path of the control object.

getProxyTypeFunc gio.types.DBusProxyTypeFunc

A #GDBusProxyTypeFunc function or null to always construct #GDBusProxy proxies.

cancellable gio.cancellable.Cancellable

A #GCancellable or null

callback gio.types.AsyncReadyCallback

A #GAsyncReadyCallback to call when the request is satisfied.