NSSpellCheckerWrapper

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun checkSpelling(text: String, startingAt: Long = 0, language: String? = null): NSRange

Find the first misspelling in text. language null = automatic detection.

Link copied to clipboard
open override fun close()
Link copied to clipboard

Gets the current language.

Link copied to clipboard
fun getSuggestions(word: String, language: String? = null): List<String>

Gets suggestions for a specific word.

Link copied to clipboard
fun ignoreWord(word: String)

Ignores a word for this session.

Link copied to clipboard
fun isWordCorrect(word: String, language: String? = null): Boolean

language null = automatic detection.

Link copied to clipboard
fun learnWord(word: String)

Adds a word to the user dictionary.

Link copied to clipboard
fun setLanguage(language: String): Boolean

Sets the language.

Link copied to clipboard
fun unlearnWord(word: String)

Removes a word previously added via learnWord.