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
downloadFile & repaint issue
@iamlamprey No this is a reserved keyword which you can't pass as lambda. But if you copy it as a normal variable, it should work. Try: // I don't know if yo...
Forum (forum.hise.audio)
-
@d-healey thanks will do!
-
O oskarsh marked this topic as a question on
-
O oskarsh has marked this topic as solved on