public interface SpellChecker extends ProfileService
Modifier and Type | Method and Description |
---|---|
Dictionary |
customDictionary()
Returns the custom dictionary.
|
java.util.List<java.lang.String> |
dictionaryNames()
Returns an immutable list of the dictionary names used for spell checking.
|
void |
dictionaryNames(java.lang.String... dictionaryNames)
Updates the dictionary names used for spell checking.
|
void |
disable()
Disables spell checking on the web pages loaded in the browser instances of the profile.
|
void |
enable()
Enables spell checking on the web pages loaded in the browser instances of the profile.
|
boolean |
isEnabled()
Indicates whether spell checking is enabled or not.
|
profile
boolean isEnabled()
java.lang.IllegalStateException
- when the profile is deleted or its engine is closedvoid enable()
void disable()
java.lang.IllegalStateException
- when the profile is deleted or its engine is closedjava.util.List<java.lang.String> dictionaryNames()
java.lang.IllegalStateException
- when the profile is deleted or its engine is closedvoid dictionaryNames(java.lang.String... dictionaryNames)
Important: on macOS this method updates the dictionary names, but these dictionaries will not be downloaded and used for spell checking. On macOS the platform spell checker is used instead. This platform spell checker automatically detects the language of the text.
dictionaryNames
- the list of strings that represent the dictionary names. For example,
"en-us", "ru", etc.java.lang.IllegalArgumentException
- when one or more elements of the dictionaryNames
are empty or blankjava.lang.IllegalStateException
- when the profile is deleted or its engine is closedDictionary customDictionary()