Skip to content

Is there any provision for check fleksy license is valid or not in Predictive-SDK ? #9

Closed Answered by xevifar
Gulshank61 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Gulshank61 , right now, we do not a specific method for returning the license state. Though, you can implement something like this to get if the license is invalid:

launch {
                val result =
                    fleksyLib.currentWordPrediction(
                        TypingContext(
                            binding.etInput.text.toString(),
                            binding.etInput.cursortStart,
                            binding.etInput.cursorEnd
                        )
                    )

                if (result.isSuccess) {
                    showCandidateList(result.getOrNull())

                } else {
                    showError(result.exceptionOrNull…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Gulshank61
Comment options

@xevifar
Comment options

Answer selected by Gulshank61
@Gulshank61
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants