object_invoke_methodv


Description:

public Value object_invoke_methodv (string name, Value[]? parameters)

Invoke method with name on object referenced by this, passing the given parameters .

If parameters.length is 0 no parameters will be passed to the method. The object instance will be handled automatically even when the method is a custom one registered with jsc_class_add_method, so it should never be passed explicitly as parameter of this function.

This function always returns a Value, in case of void methods a Value referencing <function>undefined</function> is returned.

Parameters:

this

a Value

name

the method name

parameters

the Value<!-- -->s to pass as parameters to the method, or null

n_parameters

the number of parameters

Returns:

a Value with the return value of the method.




2022 vala-language.org