DBusProxy.call

Asynchronously 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 closed then the operation will fail with G_IO_ERROR_CLOSED. If cancellable is canceled, the operation will fail with G_IO_ERROR_CANCELLED. If parameters contains a value not compatible with the D-Bus protocol, the operation fails with G_IO_ERROR_INVALID_ARGUMENT. If the parameters GVariant is floating, it is consumed. This allows Since 2.26

Parameters

methodName string

Name of method to invoke.

parameters Variant

A GVariant tuple with parameters for the signal or NULL if not passing parameters. [allow-none]

flags GDBusCallFlags

Flags from the GDBusCallFlags enumeration.

timeoutMsec int

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

cancellable Cancellable

A GCancellable or NULL. [allow-none]

callback GAsyncReadyCallback

A GAsyncReadyCallback to call when the request is satisfied or NULL if you don't care about the result of the method invocation. [allow-none]

userData void*

The data to pass to callback.

Meta