public DBusProxy.sync (DBusConnection connection, DBusProxyFlags flags, DBusInterfaceInfo? info, string? name, string object_path, string interface_name, Cancellable? cancellable = null) throws Error
Creates a proxy for accessing
interface_name on the remote object at
object_path owned by
connection and synchronously loads D-Bus properties unless the g_dbus_proxy_flags_do_not_load_properties
flag is used.
If the g_dbus_proxy_flags_do_not_connect_signals flag is not set, also sets up match rules for signals. Connect to the g_signal signal to handle signals from the remote object.
If both g_dbus_proxy_flags_do_not_load_properties and g_dbus_proxy_flags_do_not_connect_signals are set, this constructor is guaranteed to return immediately without blocking.
name is a well-known name and the g_dbus_proxy_flags_do_not_auto_start and
g_dbus_proxy_flags_do_not_auto_start_at_construction flags aren't set and no name owner currently exists, the
message bus will be requested to launch a name owner for the name.
DBusProxy is used in this example.
Flags used when constructing the proxy.
A DBusInterfaceInfo specifying the minimal interface that
A bus name (well-known or unique) or null if
An object path.
A D-Bus interface name.
A Cancellable or null.