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

connection gio.dbus_connection.DBusConnection

A #GDBusConnection.

flags gio.types.DBusObjectManagerClientFlags

Zero or more flags from the #GDBusObjectManagerClientFlags enumeration.

name string

The owner of the control object (unique or well-known name), or null when not using a message bus connection.

objectPath string

The object path of the control object.

getProxyTypeFunc gio.types.DBusProxyTypeFunc

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

cancellable gio.cancellable.Cancellable

A #GCancellable or null

Return Value

Type: gio.dbus_object_manager_client.DBusObjectManagerClient

A #GDBusObjectManagerClient object or null if error is set. Free with gobject.object.ObjectG.unref.