Skip to content

Most visited

Recently visited



public abstract class SpellCheckerService
extends Service

   ↳ android.content.Context
     ↳ android.content.ContextWrapper
         ↳ android.service.textservice.SpellCheckerService

SpellCheckerService provides an abstract base class for a spell checker. This class combines a service to the system with the spell checker service interface that spell checker must implement.

In addition to the normal Service lifecycle methods, this class introduces a new specific callback that subclasses should override createSession() to provide a spell checker session that is corresponding to requested language and so on. The spell checker session returned by this method should extend SpellCheckerService.Session.

Returning spell check results

onGetSuggestions(TextInfo, int) should return spell check results. It receives TextInfo and returns SuggestionsInfo for the input. You may want to override onGetSuggestionsMultiple(TextInfo[], int, boolean) for better performance and quality.

Please note that getLocale() does not return a valid locale before onCreate()


Nested classes

class SpellCheckerService.Session

This abstract class should be overridden by a concrete implementation of a spell checker. 



Inherited constants

Public constructors


Public methods

abstract SpellCheckerService.Session createSession()

Factory method to create a spell checker session impl

final IBinder onBind(Intent intent)

Implement to return the implementation of the internal spell checker service interface.

Inherited methods



added in API level 14

Constant Value: "android.service.textservice.SpellCheckerService"

Public constructors


added in API level 14
SpellCheckerService ()

Public methods


added in API level 14
SpellCheckerService.Session createSession ()

Factory method to create a spell checker session impl

SpellCheckerService.Session SpellCheckerSessionImpl which should be overridden by a concrete implementation.


added in API level 14
IBinder onBind (Intent intent)

Implement to return the implementation of the internal spell checker service interface. Subclasses should not override.

intent Intent: The Intent that was used to bind to this service, as given to Context.bindService. Note that any extras that were included with the Intent at that point will not be seen here.

IBinder Return an IBinder through which clients can call on to the service.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)