|
| DefaultClientSuggestionsAdapter (ArrayList< ClientSuggestionsModel > suggestions, String queryText, boolean shouldHighlight, boolean showHits, boolean searchResultImage, boolean redirectIcon) |
|
| DefaultClientSuggestionsAdapter (ArrayList< ClientSuggestionsModel > suggestions, String queryText, boolean shouldHighlight, boolean showHits, boolean searchResultImage, boolean redirectIcon, int topEntries) |
|
| DefaultClientSuggestionsAdapter (ArrayList< ClientSuggestionsModel > suggestions, int customCategoriesCount, String queryText, boolean shouldHighlight, boolean showHits, boolean searchResultImage, boolean redirectIcon) |
|
ClientSuggestionsViewHolder | onCreateViewHolder (ViewGroup parent, int viewType) |
|
void | onBindViewHolder (@NonNull ClientSuggestionsViewHolder holder, final int position) |
|
int | getItemCount () |
|
void | onAttachedToRecyclerView (RecyclerView recyclerView) |
|
void | insert (int position, ClientSuggestionsModel data) |
|
void | remove (ClientSuggestionsModel data) |
|
void | clear () |
|
ClientSuggestionsModel | getItem (int position) |
|
void | setOnRedirectClickListener (RedirectClickListener redirectClickListener) |
|
void | setRecyclerItemClickListener (RecyclerItemClickListener recyclerItemClickListener) |
|
◆ DefaultClientSuggestionsAdapter() [1/3]
com.harsh.searchwidget.Adapter.DefaultClientSuggestionsAdapter.DefaultClientSuggestionsAdapter |
( |
ArrayList< ClientSuggestionsModel > |
suggestions, |
|
|
String |
queryText, |
|
|
boolean |
shouldHighlight, |
|
|
boolean |
showHits, |
|
|
boolean |
searchResultImage, |
|
|
boolean |
redirectIcon |
|
) |
| |
Initiates DefaultClientSuggestionsAdapter with default topEntries parameter Using this constructor, no categories for any search results will be shown
- Parameters
-
suggestions | List of suggestions to be added |
queryText | The text which is queried/written in the search bar |
shouldHighlight | Should highlight the queried text or not |
showHits | Should show number of hits or not |
searchResultImage | Whether to show search image/icon before search results/suggestions |
redirectIcon | Whether to show redirect icon for every search result entry |
◆ DefaultClientSuggestionsAdapter() [2/3]
com.harsh.searchwidget.Adapter.DefaultClientSuggestionsAdapter.DefaultClientSuggestionsAdapter |
( |
ArrayList< ClientSuggestionsModel > |
suggestions, |
|
|
String |
queryText, |
|
|
boolean |
shouldHighlight, |
|
|
boolean |
showHits, |
|
|
boolean |
searchResultImage, |
|
|
boolean |
redirectIcon, |
|
|
int |
topEntries |
|
) |
| |
Initiates DefaultClientSuggestionsAdapter
- Parameters
-
suggestions | List of suggestions to be added |
queryText | The text which is queried/written in the search bar |
shouldHighlight | Should highlight the queried text or not |
showHits | Should show number of hits or not |
searchResultImage | Whether to show search image/icon before search results/suggestions |
redirectIcon | Whether to show redirect icon for every search result entry |
topEntries | Number of entries for which categories needs to be shown under search result |
◆ DefaultClientSuggestionsAdapter() [3/3]
com.harsh.searchwidget.Adapter.DefaultClientSuggestionsAdapter.DefaultClientSuggestionsAdapter |
( |
ArrayList< ClientSuggestionsModel > |
suggestions, |
|
|
int |
customCategoriesCount, |
|
|
String |
queryText, |
|
|
boolean |
shouldHighlight, |
|
|
boolean |
showHits, |
|
|
boolean |
searchResultImage, |
|
|
boolean |
redirectIcon |
|
) |
| |
Initiates DefaultClientSuggestionsAdapter with separate results for categories
- Parameters
-
suggestions | List of suggestions to be added |
customCategoriesCount | Number of extra search results to be added on top for categorical search |
queryText | The text which is queried/written in the search bar |
shouldHighlight | Should highlight the queried text or not |
showHits | Should show number of hits or not |
searchResultImage | Whether to show search image/icon before search results/suggestions |
redirectIcon | Whether to show redirect icon for every search result entry |
◆ clear()
void com.harsh.searchwidget.Adapter.DefaultClientSuggestionsAdapter.clear |
( |
| ) |
|
Clears all items in adapter
◆ getItem()
Get search result at given position
- Parameters
-
position | Position of the search item to be returned |
- Returns
- Search item in form ClientSuggestionsModel
◆ getItemCount()
int com.harsh.searchwidget.Adapter.DefaultClientSuggestionsAdapter.getItemCount |
( |
| ) |
|
Returns the number of elements the RecyclerView will display
◆ insert()
void com.harsh.searchwidget.Adapter.DefaultClientSuggestionsAdapter.insert |
( |
int |
position, |
|
|
ClientSuggestionsModel |
data |
|
) |
| |
◆ onAttachedToRecyclerView()
void com.harsh.searchwidget.Adapter.DefaultClientSuggestionsAdapter.onAttachedToRecyclerView |
( |
RecyclerView |
recyclerView | ) |
|
Attaches recycler view to parent view
◆ remove()
◆ setOnRedirectClickListener()
void com.harsh.searchwidget.Adapter.DefaultClientSuggestionsAdapter.setOnRedirectClickListener |
( |
RedirectClickListener |
redirectClickListener | ) |
|
Registers listener for redirect icon click callbacks
- Parameters
-
redirectClickListener | Redirect icon click callbacks |
The documentation for this class was generated from the following file:
- /Users/harshpatel/Desktop/Appbase.io/android-searchbox/searchwidget/src/main/java/com/harsh/searchwidget/Adapter/DefaultClientSuggestionsAdapter.java