QueryUrlPredictor

Functions

Link copied to clipboard
abstract fun classify(input: String): Decision

Classifies the input string as a navigable URL or a search query. You should be calling isReady before calling this method to make sure the library is properly initialized

Link copied to clipboard
abstract fun isReady(): Boolean

Indicates whether the UrlPredictor native library is ready to be used.

Link copied to clipboard
abstract fun isUrl(query: String): Boolean

Returns true if query should be treated as a navigable URL, false if it should be treated as a search query.