# LanguageIdentification

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

A `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier`
is created via `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentification#getClient(com.google.mlkit.nl.languageid.LanguageIdentificationOptions)` or `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentification#getClient()`
if you wish to use the default options. For example, the code below creates a `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/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) | [getClient](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentification#getClient(com.google.mlkit.nl.languageid.LanguageIdentificationOptions))([LanguageIdentificationOptions](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentificationOptions) options) Gets an instance of `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier`, which identifies the language for a given text input, with the given `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentificationOptions`. |
| static [LanguageIdentifier](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier) | [getClient](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentification#getClient())() Gets an instance of `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/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)
**getClient** ([LanguageIdentificationOptions](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentificationOptions) options)

Gets an instance of `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier`,
which identifies the language for a given text input, with the given `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentificationOptions`.

To release the resources associated with an `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier`,
you should ensure that `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier#close()`
is called on the resulting `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier`
instance once it will no longer be used.

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

Gets an instance of `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier`,
which identifies the language for a given text input.