setUserDictionary

actual suspend fun setUserDictionary(words: Collection<String>)(source)

Atomically replaces the DictionaryScope.AppLocal user dictionary with words (normalized the same way as addToDictionary: trimmed, case-insensitive) and resets this checker's session ignore set. Use to switch between independent dictionary contexts without tearing down the checker.

Does not touch DictionaryScope.System entries — those live in the OS dictionary. Does not clear native platform-level session ignores (UITextChecker, NSSpellChecker, Hunspell, ISpellChecker retain them until close); callers that rely heavily on ignoreWord should close and recreate the checker for a fully clean slate.

expect suspend fun setUserDictionary(words: Collection<String>)(source)

Atomically replaces the DictionaryScope.AppLocal user dictionary with words (normalized the same way as addToDictionary: trimmed, case-insensitive) and resets this checker's session ignore set. Use to switch between independent dictionary contexts without tearing down the checker.

Does not touch DictionaryScope.System entries — those live in the OS dictionary. Does not clear native platform-level session ignores (UITextChecker, NSSpellChecker, Hunspell, ISpellChecker retain them until close); callers that rely heavily on ignoreWord should close and recreate the checker for a fully clean slate.

actual suspend fun setUserDictionary(words: Collection<String>)(source)

Atomically replaces the DictionaryScope.AppLocal user dictionary with words (normalized the same way as addToDictionary: trimmed, case-insensitive) and resets this checker's session ignore set. Use to switch between independent dictionary contexts without tearing down the checker.

Does not touch DictionaryScope.System entries — those live in the OS dictionary. Does not clear native platform-level session ignores (UITextChecker, NSSpellChecker, Hunspell, ISpellChecker retain them until close); callers that rely heavily on ignoreWord should close and recreate the checker for a fully clean slate.

actual suspend fun setUserDictionary(words: Collection<String>)(source)

Atomically replaces the DictionaryScope.AppLocal user dictionary with words (normalized the same way as addToDictionary: trimmed, case-insensitive) and resets this checker's session ignore set. Use to switch between independent dictionary contexts without tearing down the checker.

Does not touch DictionaryScope.System entries — those live in the OS dictionary. Does not clear native platform-level session ignores (UITextChecker, NSSpellChecker, Hunspell, ISpellChecker retain them until close); callers that rely heavily on ignoreWord should close and recreate the checker for a fully clean slate.