setMaxTextLength method

void setMaxTextLength(
  1. int maxTextLength
)

Specify max size of target text to use for language detection.

The default value is 10000(10KB).

Implementation

void setMaxTextLength(int maxTextLength) {
  this.maxTextLength = maxTextLength;
}