setMaxConcurrency method
Sets the maximum number of concurrent gaze tracking processes.
maxConcurrency
specifies the maximum number of threads to be used for gaze tracking.
If maxConcurrency
is 0, it will use as many threads as possible without limitation.
If maxConcurrency
is less than 1, it defaults to 1.
Returns the GazeTrackerOptionsBuilder for method chaining.
Implementation
GazeTrackerOptionsBuilder setMaxConcurrency(int maxConcurrency) {
if (maxConcurrency < 0) {
_maxConcurrency = 1;
} else {
_maxConcurrency = maxConcurrency;
}
return this;
}