# LanguageIdentification

public class **LanguageIdentification** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Entry point to get a `LanguageIdentifier`
that identifies language for a given text input.

A `LanguageIdentifier`
is created via `
getClient(LanguageIdentificationOptions)` or `getClient()`
if you wish to use the default options. For example, the code below creates a `LanguageIdentifier`
with default options.

Example:

    LanguageIdentifier languageIdentifier = LanguageIdentification.getClient();
     
### Public Method Summary

|---|---|
| static [LanguageIdentifier](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier.md.txt) | [getClient](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentification.md.txt#getClient(com.google.mlkit.nl.languageid.LanguageIdentificationOptions))([LanguageIdentificationOptions](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentificationOptions.md.txt) options) Gets an instance of `LanguageIdentifier`, which identifies the language for a given text input, with the given ` options`. |
| static [LanguageIdentifier](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier.md.txt) | [getClient](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentification.md.txt#getClient())() Gets an instance of `LanguageIdentifier`, which identifies the language for a given text input. |

### 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 Methods

#### public static [LanguageIdentifier](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier.md.txt)
**getClient** ([LanguageIdentificationOptions](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentificationOptions.md.txt) options)

Gets an instance of `LanguageIdentifier`,
which identifies the language for a given text input, with the given `options`.

To release the resources associated with an `LanguageIdentifier`,
you should ensure that `LanguageIdentifier.close()`
is called on the resulting `LanguageIdentifier`
instance once it will no longer be used.

#### public static [LanguageIdentifier](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier.md.txt)
**getClient** ()

Gets an instance of `LanguageIdentifier`,
which identifies the language for a given text input.