Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Constants](https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#inhconstants) \| [Fields](https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#lfields) \| [Methods](https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#inhmethods)

# SpellCheckerInfo

*** ** * ** ***

` public final class SpellCheckerInfo `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/os/Parcelable `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.view.textservice.SpellCheckerInfo |

<br />

*** ** * ** ***

This class is used to specify meta information of a spell checker. The XML file specifying metadata for a spell checker service must adhere to the following constraints:

- All literal strings and resolved string resources must not exceed 1,000 characters in length each.
- The total size of the XML file must not exceed 204,800 bytes (200 KiB).
- The total length of all literal strings, resolved string resources, integers, and resource IDs must not exceed 204,800 bytes (200 KiB).

<br />

## Summary

### Inherited constants

From interface `https://developer.android.com/reference/android/os/Parcelable` `int` `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR`

Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`".

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo>` | `https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#CREATOR` Used to make this class parcelable. |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#describeContents()() ` Used to make this class parcelable. |
| ` https://developer.android.com/reference/android/content/ComponentName` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#getComponent()() ` Return the component of the service that implements. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#getId()() ` Return a unique ID for this spell checker. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#getPackageName()() ` Return the .apk package that implements this. |
| ` https://developer.android.com/reference/android/content/pm/ServiceInfo` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#getServiceInfo()() ` Return the raw information about the Service implementing this spell checker. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#getSettingsActivity()() ` Return the class name of an activity that provides a settings UI. |
| ` https://developer.android.com/reference/android/view/textservice/SpellCheckerSubtype` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#getSubtypeAt(int)(int index) ` Return the subtype at the specified index. |
| ` int` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#getSubtypeCount()() ` Return the count of the subtypes. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#loadIcon(android.content.pm.PackageManager)(https://developer.android.com/reference/android/content/pm/PackageManager pm) ` Load the user-displayed icon for this spell checker. |
| ` https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#loadLabel(android.content.pm.PackageManager)(https://developer.android.com/reference/android/content/pm/PackageManager pm) ` Load the user-displayed label for this spell checker. |
| ` void` | ` https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Used to package this object into a `https://developer.android.com/reference/android/os/Parcel`. |

### 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*.
From interface ` https://developer.android.com/reference/android/os/Parcelable ` ` abstract int` ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() `

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
` abstract void` ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) `

Flatten this object in to a Parcel.

## Fields

### CREATOR

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

```
public static final Creator<SpellCheckerInfo> CREATOR
```

Used to make this class parcelable.

<br />

## Public methods

### describeContents

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

```
public int describeContents ()
```

Used to make this class parcelable.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### getComponent

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

```
public ComponentName getComponent ()
```

Return the component of the service that implements.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/ComponentName` | <br /> |

### getId

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

```
public String getId ()
```

Return a unique ID for this spell checker. The ID is generated from the package and class name implementing the method.

<br />

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

### getPackageName

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

```
public String getPackageName ()
```

Return the .apk package that implements this.

<br />

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

### getServiceInfo

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

```
public ServiceInfo getServiceInfo ()
```

Return the raw information about the Service implementing this spell checker. Do not modify the returned object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/pm/ServiceInfo` | <br /> |

### getSettingsActivity

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

```
public String getSettingsActivity ()
```

Return the class name of an activity that provides a settings UI. You can launch this activity be starting it with an `https://developer.android.com/reference/android/content/Intent` whose action is MAIN and with an explicit `https://developer.android.com/reference/android/content/ComponentName` composed of `https://developer.android.com/reference/android/view/textservice/SpellCheckerInfo#getPackageName()` and the class name returned here.

A null will be returned if there is no settings activity.

<br />

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

### getSubtypeAt

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

```
public SpellCheckerSubtype getSubtypeAt (int index)
```

Return the subtype at the specified index.

<br />

| Parameters ||
|---|---|
| `index` | `int`: the index of the subtype to return. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/textservice/SpellCheckerSubtype` | <br /> |

### getSubtypeCount

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

```
public int getSubtypeCount ()
```

Return the count of the subtypes.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### loadIcon

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

```
public Drawable loadIcon (PackageManager pm)
```

Load the user-displayed icon for this spell checker.

<br />

| Parameters ||
|---|---|
| `pm` | `PackageManager`: Supply a PackageManager used to load the spell checker's resources. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | <br /> |

### loadLabel

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

```
public CharSequence loadLabel (PackageManager pm)
```

Load the user-displayed label for this spell checker.

<br />

| Parameters ||
|---|---|
| `pm` | `PackageManager`: Supply a PackageManager used to load the spell checker's resources. <br /> |

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

### writeToParcel

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

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Used to package this object into a `https://developer.android.com/reference/android/os/Parcel`.

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel`: The `https://developer.android.com/reference/android/os/Parcel` to be written. <br /> |
| `flags` | `int`: The flags used for parceling. <br /> |