DBusObjectManagerClient.newSync

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

connectionA #GDBusConnection.
flagsZero or more flags from the #GDBusObjectManagerClientFlags enumeration.
nameThe owner of the control object (unique or well-known name), or null when not using a message bus connection.
objectPathThe object path of the control object.
getProxyTypeFuncA #GDBusProxyTypeFunc function or null to always construct #GDBusProxy proxies.
cancellableA #GCancellable or null

Returns

A

#GDBusObjectManagerClient object or null if error is set. Free with [gobject.object.ObjectWrap.unref].

Throws

[ErrorWrap]