public <T> void addValueCallback(KeyPath keyPath, T property,
                                   final SimpleLottieValueCallback<T> callback) {
    addValueCallback(keyPath, property, new LottieValueCallback<T>() {
      @Override
      public T getValue(LottieFrameInfo<T> frameInfo) {
        return callback.getValue(frameInfo);
      }
    });
  }
public < T > void addValueCallback ( KeyPath keyPath , T property , final SimpleLottieValueCallback < T > callback ) { addValueCallback ( keyPath , property , new LottieValueCallback < T > ( ) { @ Override public T getValue ( LottieFrameInfo < T > frameInfo ) { return callback . getValue ( frameInfo ) ; } } ) ; }
Overload of {@link #addValueCallback(KeyPath, Object, LottieValueCallback)} that takes an interface. This allows you to use a single abstract
method code block in Kotlin such as:
drawable.addValueCallback(yourKeyPath, LottieProperty.COLOR) { yourColor }