Function parameters for callback functions
-
Is it possible to add function parameters to callbacks?
Example code on what I am trying to achieve:
Server.downloadFile(url, {}, target, callbackFunc(parameter)); inline function callbackFunc(parameter) {...}
-
@oskarsh No, the parameters of callbacks are always predefined. You need to store your values in namespace wide reg variables or pass them in via lambda.
Christoph gives an example of that here
https://forum.hise.audio/topic/6948/downloadfile-repaint-issue/8
-
@d-healey thanks will do!
-
-