createSpellChecker

Creates a PlatformSpellChecker. If locale is null, the user's current/system language is used. If locale is non-null, implementations should validate support and throw if unsupported.

Parameters

locale

BCP47 language tag (e.g., "en-US")

Throws

expect suspend fun createSpellChecker(locale: SpLocale? = null): PlatformSpellChecker(source)

Creates a PlatformSpellChecker. If locale is null, the user's current/system language is used. If locale is non-null, implementations should validate support and throw if unsupported.

Parameters

locale

BCP47 language tag (e.g., "en-US")

Throws

Creates a PlatformSpellChecker. If locale is null, the user's current/system language is used. If locale is non-null, implementations should validate support and throw if unsupported.

Parameters

locale

BCP47 language tag (e.g., "en-US")

Throws

Creates a PlatformSpellChecker. If locale is null, the user's current/system language is used. If locale is non-null, implementations should validate support and throw if unsupported.

Parameters

locale

BCP47 language tag (e.g., "en-US")

Throws