public TextDirectionHeuristicCompat getTextDirection() {
    return mParams.textDirection;
  }
Returns the text direction for this TextLayoutBuilder.

@return The text direction used by this TextLayoutBuilder
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java