onEnd

open fun onEnd(action: Runnable): Sound

Set the action to run when the sound ends.

Return

this Sound object

Parameters

action

the action to run when the sound ends