diff --git a/lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java b/lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java index 3f5a5c781d..05b1518f65 100644 --- a/lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java +++ b/lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java @@ -413,10 +413,20 @@ public boolean isMergePathsEnabledForKitKatAndAbove() { return lottieDrawable.isFeatureFlagEnabled(LottieFeatureFlag.MergePathsApi19); } + /** + * Enable the specified feature for this LottieView. + *
+ * Features guarded by LottieFeatureFlags are experimental or only supported by a subset of API levels. + * Please ensure that the animation supported by the enabled feature looks acceptable across all + * targeted API levels. + */ public void enableFeatureFlag(LottieFeatureFlag flag, boolean enable) { lottieDrawable.enableFeatureFlag(flag, enable); } + /** + * Returns whether the specified feature is enabled. + */ public boolean isFeatureFlagEnabled(LottieFeatureFlag flag) { return lottieDrawable.isFeatureFlagEnabled(flag); }