STWSearch Controller
STWSearchController
Class responsible to manage all search contact operations
To create a new search Controller instance you need to write this code:
STWSearchController searchController =
STWContactManager.getInstance().createSearchController(new STWSearchController.STWContactSearchCallback() {
@Override
public void onStart() {
// Code ..
}
@Override
public void onComplete(List<ContactItem> businessContacts, List<ContactItem> smartMsContacts, String keyWord) {
//Code...
}
}, window);
Content copied to clipboard
This class offers several possible operations defined in the following list:
- Search contact by keyword
- Filter Search result
- Load more items
Search contact by keywor
.......
searchController.search(context, keyword);
........
Content copied to clipboard
Filter Search result
......
@STWContactFilter int filter = STWContactFilter.GROUP;
searchController.filter(context, filter);
......
Content copied to clipboard
Load more items
.....
searchController.loadMore(context);
........
Content copied to clipboard
Functions
Link copied to clipboard
Cancel the current search operation if exist
Link copied to clipboard
Check if exist more result items for the last search operation done.
Link copied to clipboard
open fun loadMore(@NonNull context: Context, @NonNull advancedFilter: STWContactFilterOption)
Content copied to clipboard
Load more results for the last performed search if exist The same callback will be used to return result.
Link copied to clipboard
open fun search( @NonNull context: Context, @NonNull keyWord: String, @NonNull advancedFilter: STWContactFilterOption)
Content copied to clipboard
open fun search( @NonNull context: Context, @NonNull keyWord: String, filter: Int)
Content copied to clipboard
Tries to find all contacts, matching keyword, from company.