blob: 70b6608d3b9e2edb7ff0f07dcfc2a9cc0a35d5de [file] [log] [blame]
package com.airbnb.lottie.value;
/**
* Delegate interface for {@link LottieValueCallback}. This is helpful for the Kotlin API because you can use a SAM conversion to write the
* callback as a single abstract method block like this:
* animationView.addValueCallback(keyPath, LottieProperty.TRANSFORM_OPACITY) { 50 }
*/
public interface SimpleLottieValueCallback<T> {
T getValue(LottieFrameInfo<T> frameInfo);
}