animatedledstrip-client / animatedledstrip.client / AnimationSenderFactory / AnimationSender / setOnNewAnimationCallback

setOnNewAnimationCallback

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

Specify an action to perform when an animation starting 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