#GDBusObjectManagerClient object or null if error is set. Free with [gobject.object.ObjectWrap.unref].
DBusObjectManagerClient.newSync
gio.dbus_object_manager_client.DBusObjectManagerClient newSync(gio.dbus_connection.DBusConnection connection, gio.types.DBusObjectManagerClientFlags flags, string name, string objectPath, gio.types.DBusProxyTypeFunc getProxyTypeFunc = null, gio.cancellable.Cancellable cancellable = null)Creates a new #GDBusObjectManagerClient object.
This is a synchronous failable constructor - the calling thread is blocked until a reply is received. See [gio.dbus_object_manager_client.DBusObjectManagerClient.new_] for the asynchronous version.
Parameters
connection | A #GDBusConnection. |
flags | Zero or more flags from the #GDBusObjectManagerClientFlags enumeration. |
name | The owner of the control object (unique or well-known name), or null when not using a message bus connection. |
objectPath | The object path of the control object. |
getProxyTypeFunc | A #GDBusProxyTypeFunc function or null to always construct #GDBusProxy proxies. |
cancellable | A #GCancellable or null |
Returns
A
Throws
[ErrorWrap]