FKCoreListener

public interface FKCoreListener

Listener interface to receive predictions coming from the FKCoreXR API

Summary

Methods
void OnCurrentWordPredictions(ArrayList predictions)
Receive current word predictions: completions and autocorrections after calling FKCoreXR.CurrentWordPrediction
void OnNextWordPredictions(ArrayList predictions)
Receive next word predictions after calling FKCoreXR.NextWordPrediction
void OnSwipeWordPredictions(ArrayList predictions)
Receive swipe word predictions after calling FKCoreXR.startSwipe, FKCoreXR.sendSwipeTypePoint multiple times and finally, FKCoreXR.stopSwipe

Methods

OnCurrentWordPredictions

public void OnCurrentWordPredictions(ArrayList predictions);

Receive current word predictions: completions and autocorrections after calling FKCoreXR.CurrentWordPrediction

Parameters
ArrayList predictions An ArrayList with FKPredictionItem elements sorted by score

OnNextWordPredictions

public void OnNextWordPredictions(ArrayList predictions);

Receive next word predictions after calling FKCoreXR.NextWordPrediction

Parameters
ArrayList predictions An ArrayList with FKPredictionItem elements sorted by score

OnSwipeWordPredictions

public void OnSwipeWordPredictions(ArrayList predictions);

Receive swipe word predictions after calling FKCoreXR.startSwipe, FKCoreXR.sendSwipeTypePoint multiple times and finally, FKCoreXR.stopSwipe

Parameters
ArrayList predictions An ArrayList with FKPredictionItem elements sorted by score

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 1, 2023