animatedledstrip-client / animatedledstrip.client / AnimationSenderFactory / AnimationSender / setOnEndAnimationCallback

setOnEndAnimationCallback

fun <R> setOnEndAnimationCallback(action: (AnimationData) -> R): AnimationSender

Specify an action to perform when an animation ending message is received from the server. Runs after onReceive callback.

Parameters

R - The return type of your function

action - A function to run

Return
this