-
- All Implemented Interfaces:
-
com.pointrlabs.core.management.PTRListener
public interface SearchEventsListener implements PTRListener
Interface that notifies about search related events
-
-
Method Summary
Modifier and Type Method Description Unit
onSearchInput(String searchInput)
Invoked when the text in the search box is changed Unit
onSearchRowEvent(SearchItemViewModel.PoiViewModel poiViewModel)
Invoked when a poi is clicked from the search results list abstract Unit
onSearchEventForPoi(PTRSearchAction action, PoiDetailsModel poiDetailsModel)
Notifies when there is a search even related to a poi abstract Unit
onSearchEventLayoutStateChange(PTRSearchLayoutState layoutState)
Notifies when there is a change in the layout of the search view abstract Unit
onSearchEventPoiCategorySelected(PoiCategory selectedCategory)
Notifies when there is a new selected PoiCategory abstract Unit
onSearchEventSearchReady(Site site)
Notifies when the search list is ready -
-
Method Detail
-
onSearchInput
Unit onSearchInput(String searchInput)
Invoked when the text in the search box is changed
- Parameters:
searchInput
- The new search text
-
onSearchRowEvent
@Deprecated(message = "This is deprecated as of version v8.5", replaceWith = @ReplaceWith(imports = {}, expression = "onSearchEventForPoi")) Unit onSearchRowEvent(SearchItemViewModel.PoiViewModel poiViewModel)
Invoked when a poi is clicked from the search results list
- Parameters:
poiViewModel
- a wrapper class object containing useful information about the clicked poi
-
onSearchEventForPoi
abstract Unit onSearchEventForPoi(PTRSearchAction action, PoiDetailsModel poiDetailsModel)
Notifies when there is a search even related to a poi
- Parameters:
action
- The search action that user performedpoiDetailsModel
- The Poi that is going to be affected by the action
-
onSearchEventLayoutStateChange
abstract Unit onSearchEventLayoutStateChange(PTRSearchLayoutState layoutState)
Notifies when there is a change in the layout of the search view
- Parameters:
layoutState
- The new layout state
-
onSearchEventPoiCategorySelected
abstract Unit onSearchEventPoiCategorySelected(PoiCategory selectedCategory)
Notifies when there is a new selected PoiCategory
- Parameters:
selectedCategory
- The new selected category
-
onSearchEventSearchReady
abstract Unit onSearchEventSearchReady(Site site)
Notifies when the search list is ready
-
-
-
-