handleCompatUserLookup

abstract fun handleCompatUserLookup(query: String, callback: (List<User>) -> Unit): () -> Unit

Handles user lookup by given query in suspend way. It's executed on background, so it can perform heavy operations.

Return

The cancel function to be invoked when the user lookup should be cancelled.

Parameters

query

String as user input for lookup algorithm.

callback

The callback to be invoked when the user lookup is completed.