public TextLayoutBuilder setTextDirection(TextDirectionHeuristicCompat textDirection) {
    if (mParams.textDirection != textDirection) {
      mParams.textDirection = textDirection;
      mSavedLayout = null;
    }
    return this;
  }
Sets the text direction heuristic for the layout.

<p>TextDirectionHeuristicCompat describes how to evaluate the text of this Layout to know
whether to use RTL or LTR text direction

@param textDirection The text direction heuristic for the layout
@return This {@link TextLayoutBuilder} instance
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java