WordAutoCompletion

class WordAutoCompletion(context: Context)

Types

Companion
Link copied to clipboard
object Companion

Functions

close
Link copied to clipboard
fun close()

Release the native resources acquired by the object. Internally, it deallocates the memory which was acquired with the createNativeInstance method.

predict
Link copied to clipboard
fun predict(phrase: String, onResult: (List<String>) -> Unit, onError: (TextPredictorError) -> Unit)

Complete the given phrase, where phrase is the incomplete word. For instance, if the given input is hel, the predictions would be hell , hello , help , helped , helps .