Skip to content

Commit

Permalink
add comments to LottieAnimationView
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeta51 committed Jul 1, 2024
1 parent 6e2a181 commit 0bdd1da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,20 @@ public boolean isMergePathsEnabledForKitKatAndAbove() {
return lottieDrawable.isFeatureFlagEnabled(LottieFeatureFlag.MergePathsApi19);
}

/**
* Enable the specified feature for this LottieView.
* <p>
* 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);
}
Expand Down

0 comments on commit 0bdd1da

Please sign in to comment.