DBusObjectManagerClient.newForBus

void newForBus(gio.types.BusType busType, gio.types.DBusObjectManagerClientFlags flags, string name, string objectPath, gio.types.DBusProxyTypeFunc getProxyTypeFunc = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

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 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

busTypeA #GBusType.
flagsZero or more flags from the #GDBusObjectManagerClientFlags enumeration.
nameThe owner of the control object (unique or well-known name).
objectPathThe object path of the control object.
getProxyTypeFuncA #GDBusProxyTypeFunc function or null to always construct #GDBusProxy proxies.
cancellableA #GCancellable or null
callbackA #GAsyncReadyCallback to call when the request is satisfied.