search
open fun search(query: String, setResults: (List<Result>) -> Unit, setError: (ErrorResponse) -> Unit): JsonObjectRequest?
Perform a web search for the provided query and add results to the provided list.
Return
a JsonObjectRequest which will be executed by the app, or null
if the provider doesn't use the Volley library or JSON.
Parameters
query
the query to search for.
set Results
call to update the list of results that will be shown in the app.
set Error
call to set an ErrorResponse, if necessary.