Package 

Class SystemReducedMotionOption

  • All Implemented Interfaces:
    com.airbnb.lottie.configurations.reducemotion.ReducedMotionOption

    
    public class SystemReducedMotionOption
     implements ReducedMotionOption
                        

    Lottie animations with a "reduced motion" marker will play that marker instead of any other animations. This class uses getAnimationScale to determine if animations are disabled and if it should play the reduced motion marker. If the animation is provided a "reduced motion" marker name, they will be shown instead of the first or last frame. Supported marker names are case insensitive, and include: - reduced motion - reducedMotion - reduced_motion - reduced-motion

    • Method Summary

      Modifier and Type Method Description
      ReducedMotionMode getCurrentReducedMotionMode(@Nullable() Context context) Returns the current reduced motion mode.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait