Use this interface to add or remove SearchResult entries.
This interface is always provided as the second argument to Plugin.search().
Example
functionsearch(query, res) {
// Add an entry to the result set
res.add({
id: 'temp',
title: 'Fetching...',
desc: 'Please wait a second',
});
// Remove entry 'temp' after `1000ms`
setTimeout(() =>
res.remove('temp'),
1000);
}
Use this interface to add or remove SearchResult entries.
This interface is always provided as the second argument to Plugin.search().
Example
function search(query, res) { // Add an entry to the result set res.add({ id: 'temp', title: 'Fetching...', desc: 'Please wait a second', }); // Remove entry 'temp' after `1000ms` setTimeout(() => res.remove('temp'), 1000); }