newForBus

fun newForBus(busType: BusType, flags: DBusObjectManagerClientFlags, name: String, objectPath: String, getProxyTypeFunc: DBusProxyTypeFunc?, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

Like g_dbus_object_manager_client_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 g-main-context-push-thread-default of the thread you are calling this method from. You can then call g_dbus_object_manager_client_new_for_bus_finish() to get the result. See g_dbus_object_manager_client_new_for_bus_sync() for the synchronous version.

Since

2.30

Parameters

busType

A #GBusType.

flags

Zero or more flags from the #GDBusObjectManagerClientFlags enumeration.

name

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

objectPath

The object path of the control object.

getProxyTypeFunc

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

cancellable

A #GCancellable or null

callback

A #GAsyncReadyCallback to call when the request is satisfied.