call


Description:

[ Version ( since = "3.26" ) ]
public bool call (string method, Variant? @params, Cancellable? cancellable, out Variant? return_value) throws Error

Synchronously calls method with params on the remote peer.

once a reply has been received, or failure, this function will return. If successful, return_value will be set with the reslut field of the response.

If params is floating then this function consumes the reference.

Parameters:

this

A Client

method

the name of the method to call

cancellable

A Cancellable or null

return_value

A location for a Variant

params

A Variant of parameters or null

Returns:

true on success; otherwise false and throws is set.