Interface SearchEventsListener
-
- 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 Unit
onSearchEventForPoi(PTRSearchAction action, PoiDetailsModel poiDetailsModel)
Notifies when there is a search even related to a poi Unit
onSearchEventForPoiWithOrigin(PTRSearchAction action, PoiDetailsModel poiDetailsModel, PTRPoiEventOrigin origin)
Notifies when there is a search even related to a poi Unit
onSearchEventLayoutStateChange(PTRSearchLayoutState layoutState)
Notifies when there is a change in the layout of the search view Unit
onSearchEventPoiCategorySelected(PoiCategory selectedCategory)
Notifies when there is a new selected PoiCategory 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
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
-
onSearchEventForPoiWithOrigin
Unit onSearchEventForPoiWithOrigin(PTRSearchAction action, PoiDetailsModel poiDetailsModel, PTRPoiEventOrigin origin)
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 actionorigin
- The origin of the event
-
onSearchEventLayoutStateChange
Unit onSearchEventLayoutStateChange(PTRSearchLayoutState layoutState)
Notifies when there is a change in the layout of the search view
- Parameters:
layoutState
- The new layout state
-
onSearchEventPoiCategorySelected
Unit onSearchEventPoiCategorySelected(PoiCategory selectedCategory)
Notifies when there is a new selected PoiCategory
- Parameters:
selectedCategory
- The new selected category
-
onSearchEventSearchReady
Unit onSearchEventSearchReady(Site site)
Notifies when the search list is ready
-
-
-
-