callSync

open fun callSync(busName: String? = null, objectPath: String, interfaceName: String, methodName: String, parameters: <Error class: unknown class>? = null, replyType: <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 the

Return

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

Since

2.26

Parameters

busName

a unique or well-known bus name or null if @connection is not a message bus connection

objectPath

path of remote object

interfaceName

D-Bus interface to invoke method on

methodName

the name of the method to invoke

parameters

a #GVariant tuple with parameters for the method or null if not passing parameters

replyType

the expected type of the reply, or null

flags

flags from the #GDBusCallFlags enumeration

timeoutMsec

the timeout in milliseconds, -1 to use the default timeout or %G_MAXINT for no timeout

cancellable

a #GCancellable or null