SearchDebounce

Resolves how long a search query is debounced for, based on its length.

Queries of one or two characters match a large portion of the data set, which makes them the slowest ones to serve, while they are usually just a step towards the query the user is after. The thresholds match the other Stream Chat SDKs.

Properties

Link copied to clipboard
const val SHORT_QUERY_DEBOUNCE_MS: Long = 500
Link copied to clipboard

Functions

Link copied to clipboard
fun debounceMsFor(query: String, debounceMs: Long): Long

Returns the debounce period for query, never shorter than debounceMs.