API Reference

These are all the API classes and properties available in the Predictive Text SDK.

API

Package: co.thingthing.fleksy.lib.api

FleksyLib Main class to interact with the Predictive Text SDK
LibraryConfiguration Predictive Text SDK’s configuration

Extensions

Package: co.thingthing.fleksy.lib.extensions

emojiCompatLength Get a string’s length counting emoji’s and special characters as 1.

Languages

Package: co.thingthing.fleksy.lib.languages

LanguagesHelper Static methods to do all language-related operations
LocalLanguage Contains the metadata of a local language file
RemoteLanguage Contains the metadata of a remote language file

Model

Package: co.thingthing.fleksy.lib.model

Candidate Candidate for autocorrection, next word prediction or swipe typing
CandidateType Class containing type of Candidate
FLRect Object defining rectangle
LanguageFile Class representing language file’s path
LayoutKey Object defining a keyboard key
LayoutPoint Class representing language file’s path
LayoutType Type used as input for the typing interactions of the user in the keyboard
Replacement Class for string replacement
TypingContext Constructor for various classes as context

If something needs to be added or if you find an error in our documentation, please let us know either on our GitHub or Discord.

Last updated on August 24, 2023