//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.spellcheck.repo/DefaultUserDefinedWordsRepository
DefaultUserDefinedWordsRepository
[jvm]
class DefaultUserDefinedWordsRepository(dispatchers: CoroutineDispatcherProvider, fileManager: FileManager) : UserDefinedWordsRepository
Constructors
DefaultUserDefinedWordsRepository | [jvm] constructor(dispatchers: CoroutineDispatcherProvider, fileManager: FileManager) |
Functions
Name | Summary |
---|---|
add | [jvm] open suspend override fun add(word: String, lang: String) Add a new user-defined word. |
clear | [jvm] open suspend override fun clear(lang: String) Clear all the user-defined words for a language. |
getAll | [jvm] open suspend override fun getAll(lang: String): List<String> Get all user-defined words. |