Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/text/AutoText#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/text/AutoText#inhmethods)

# AutoText

*** ** * ** ***


`
public


class
AutoText
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.text.AutoText |

<br />

*** ** * ** ***

This class accesses a dictionary of corrections to frequent misspellings.

## Summary

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/text/AutoText#get(java.lang.CharSequence,%20int,%20int,%20android.view.View)(https://developer.android.com/reference/java/lang/CharSequence src, int start, int end, https://developer.android.com/reference/android/view/View view) ` Retrieves a possible spelling correction for the specified range of text. |
| ` static int` | ` https://developer.android.com/reference/android/text/AutoText#getSize(android.view.View)(https://developer.android.com/reference/android/view/View view) ` Returns the size of the auto text dictionary. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public methods

### get

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static String get (CharSequence src, 
                int start, 
                int end, 
                View view)
```

Retrieves a possible spelling correction for the specified range
of text. Returns null if no correction can be found.
The View is used to get the current Locale and Resources.

<br />

| Parameters ||
|---|---|
| `src` | `CharSequence` <br /> |
| `start` | `int` <br /> |
| `end` | `int` <br /> |
| `view` | `View` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getSize

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static int getSize (View view)
```

Returns the size of the auto text dictionary. The return value can be zero if there is
no auto correction data available for the current locale.

<br />

| Parameters ||
|---|---|
| `view` | `View`: used to retrieve the current Locale and Resources. <br /> |

| Returns ||
|---|---|
| `int` | the number of entries in the auto text dictionary <br /> |