Reply To: How to add onFinish callback to PlayFromSection?

Slate Forums Support How to add onFinish callback to PlayFromSection? Reply To: How to add onFinish callback to PlayFromSection?

#2244
mdotstrange
Participant

Hey, sorry for the late reply. I somehow missed your post :-/ Here is how to use lambda: <!– Crayon Syntax Highlighter v_2.7.2_beta –>

<!– [Format Time: 0.0009 seconds] –> In case of PlayFromSection method, the existing overload that accepts callback requires to also provide a wrapping method parameter: <!– Crayon Syntax Highlighter v_2.7.2_beta –>

<!– [Format Time: 0.0002 seconds] –> You can alternatively also replace the lambda with a method if that is easier for you. So for example: <!– Crayon Syntax Highlighter v_2.7.2_beta –>

<!– [Format Time: 0.0002 seconds] –> Let me know if that works for you. 🙂

Works perfectly- thank you!