@Nullable public LottieComposition getComposition() {
    return getDrawable() == lottieDrawable ? lottieDrawable.getComposition() : null;
  }
Sets a composition.
You can set a default cache strategy if this view was inflated with xml by
using {@link R.attr#lottie_cacheComposition}.
lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java