Gio.DBusObjectManagerClient.new_for_bus
function new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusObjectManagerClientFlags, name: String, object_path: String, get_proxy_type_func: Gio.DBusProxyTypeFunc, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_dbus_object_manager_client_new_for_bus() }
Like Gio.DBusObjectManagerClient.new but takes a Gio.BusType instead of a Gio.DBusConnection.
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.DBusObjectManagerClient.new_for_bus_finish to get the result. See Gio.DBusObjectManagerClient.new_for_bus_sync for the synchronous version.
Since 2.30
- bus_type
A Gio.BusType.
- flags
Zero or more flags from the Gio.DBusObjectManagerClientFlags enumeration.
- name
The owner of the control object (unique or well-known name).
- object_path
The object path of the control object.
- get_proxy_type_func
A Gio.DBusProxyTypeFunc function or null to always construct Gio.DBusProxy proxies.
- cancellable
A Gio.Cancellable or null
- callback
A Gio.AsyncReadyCallback to call when the request is satisfied.