public AnimatedDrawableOptionsBuilder setForceKeepAllFramesInMemory(
      boolean forceKeepAllFramesInMemory) {
    mForceKeepAllFramesInMemory = forceKeepAllFramesInMemory;
    return this;
  }
Sets whether all the rendered frames should be held in memory disregarding other constraints.

@param forceKeepAllFramesInMemory whether to force the frames to be held in memory
@return this builder
animated-base/src/main/java/com/facebook/imagepipeline/animated/base/AnimatedDrawableOptionsBuilder.java