# DevanagariTextRecognizerOptions.Builder

public static class **DevanagariTextRecognizerOptions.Builder** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Builder for the `https://developers.google.com/android/reference/com/google/mlkit/vision/text/devanagari/DevanagariTextRecognizerOptions` class.

### Public Constructor Summary

|---|---|
|   | [Builder](https://developers.google.com/android/reference/com/google/mlkit/vision/text/devanagari/DevanagariTextRecognizerOptions.Builder#Builder())() |

### Public Method Summary

|---|---|
| [DevanagariTextRecognizerOptions](https://developers.google.com/android/reference/com/google/mlkit/vision/text/devanagari/DevanagariTextRecognizerOptions) | [build](https://developers.google.com/android/reference/com/google/mlkit/vision/text/devanagari/DevanagariTextRecognizerOptions.Builder#build())() Creates a new `https://developers.google.com/android/reference/com/google/mlkit/vision/text/devanagari/DevanagariTextRecognizerOptions` instance. |
| [DevanagariTextRecognizerOptions.Builder](https://developers.google.com/android/reference/com/google/mlkit/vision/text/devanagari/DevanagariTextRecognizerOptions.Builder) | [setExecutor](https://developers.google.com/android/reference/com/google/mlkit/vision/text/devanagari/DevanagariTextRecognizerOptions.Builder#setExecutor(java.util.concurrent.Executor))([Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html) executor) Sets the custom `https://developer.android.com/reference/java/util/concurrent/Executor.html` to use. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Constructors

#### public **Builder** ()

## Public Methods

#### public [DevanagariTextRecognizerOptions](https://developers.google.com/android/reference/com/google/mlkit/vision/text/devanagari/DevanagariTextRecognizerOptions) **build** ()

Creates a new `https://developers.google.com/android/reference/com/google/mlkit/vision/text/devanagari/DevanagariTextRecognizerOptions` instance.

#### public [DevanagariTextRecognizerOptions.Builder](https://developers.google.com/android/reference/com/google/mlkit/vision/text/devanagari/DevanagariTextRecognizerOptions.Builder) **setExecutor** ([Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html) executor)

Sets the custom `https://developer.android.com/reference/java/util/concurrent/Executor.html`
to use. If no `https://developer.android.com/reference/java/util/concurrent/Executor.html`
is set, an internal background thread pool will be used.

Most clients should not need to call this method.

##### Parameters

| executor | the `https://developer.android.com/reference/java/util/concurrent/Executor.html` to use |
|---|---|

##### Returns

- this object, for chaining method calls