Gio.DBusObjectManagerClient.new
function new(connection: Gio.DBusConnection, 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() }
Asynchronously creates a new Gio.DBusObjectManagerClient object.
This is an asynchronous failable constructor. When the result is ready, callback will be invoked in the [thread-default main context][g-main-context-push-thread-default] of the thread you are calling this method from. You can then call Gio.DBusObjectManagerClient.new_finish to get the result. See Gio.DBusObjectManagerClient.new_sync for the synchronous version.
Since 2.30
- connection
- 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.