PlatformSpellCheckerFactory

PlatformSpellCheckerFactory creates platform spell checkers and provides a capability check.

Notes:

  • Android: the actual implementation exposes a platform-only initialize(context) you can call from Application.onCreate to enable capability checks that require a Context.

  • iOS/Desktop: no initialization required.

PlatformSpellCheckerFactory creates platform spell checkers and provides a capability check.

Notes:

  • Android: the actual implementation exposes a platform-only initialize(context) you can call from Application.onCreate to enable capability checks that require a Context.

  • iOS/Desktop: no initialization required.

PlatformSpellCheckerFactory creates platform spell checkers and provides a capability check.

Notes:

  • Android: the actual implementation exposes a platform-only initialize(context) you can call from Application.onCreate to enable capability checks that require a Context.

  • iOS/Desktop: no initialization required.

PlatformSpellCheckerFactory creates platform spell checkers and provides a capability check.

Notes:

  • Android: the actual implementation exposes a platform-only initialize(context) you can call from Application.onCreate to enable capability checks that require a Context.

  • iOS/Desktop: no initialization required.

Constructors

Link copied to clipboard
constructor(context: Context)
constructor()
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
actual suspend fun createSpellChecker(locale: SpLocale?): PlatformSpellChecker

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.

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

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.

actual suspend fun createSpellChecker(locale: SpLocale?): PlatformSpellChecker

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.

actual suspend fun createSpellChecker(locale: SpLocale?): PlatformSpellChecker

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.

Link copied to clipboard
Link copied to clipboard
actual fun hasLanguage(locale: SpLocale): Boolean
expect fun hasLanguage(locale: SpLocale): Boolean
actual fun hasLanguage(locale: SpLocale): Boolean
actual fun hasLanguage(locale: SpLocale): Boolean
Link copied to clipboard
actual fun isAvailable(): Boolean
expect fun isAvailable(): Boolean
actual fun isAvailable(): Boolean
actual fun isAvailable(): Boolean