I want to fire some code after animation is finished. The docs says that there is an OnCompleteAction property for this, but I don’t understand how and where to find and use that.
Create a method such as MyMethod. When setting up the task, before calling Run, pass the method to the OnCompleteAction property of the task:
Task.OnCompleteAction = WeakAddressOf MyMethod
I’m getting “Type mismatch error. Expected AKCore.AKCompletionDelegate, but got Delegate( )”.
Apologies, I wrote that on my phone, so I didn’t have reference to the code.
Your completion method will need to accept exactly one parameter:
CompletedTask As AKTask. Then they mismatch will go away.