callSync

open fun callSync(methodName: String, parameters: <Error class: unknown class>? = null, flags: DBusCallFlags, timeoutMsec: Int, cancellable: Cancellable? = null): <Error class: unknown class><<Error class: unknown class>>

Synchronously invokes the @method_name method on @proxy.

If @method_name contains any dots, then @name is split into interface and method name parts. This allows using @proxy for invoking methods on other interfaces.

If the #GDBusConnection associated with @proxy is disconnected then the operation will fail with %G_IO_ERROR_CLOSED. If

Return

null if @error is set. Otherwise a #GVariant tuple with return values. Free with g_variant_unref().

Since

2.26

Parameters

methodName

Name of method to invoke.

parameters

A #GVariant tuple with parameters for the signal or null if not passing parameters.

flags

Flags from the #GDBusCallFlags enumeration.

timeoutMsec

The timeout in milliseconds (with %G_MAXINT meaning "infinite") or -1 to use the proxy default timeout.

cancellable

A #GCancellable or null.