-
- All Implemented Interfaces:
-
com.pointrlabs.core.management.PTRListener
public interface PoiDetailEventsListener implements PTRListener
Listener about events related to PoiDetailsView
-
-
Method Summary
Modifier and Type Method Description Unit
onPoiDetailViewAction(PoiDetailsView poiDetailsView, PoiDetailViewAction poiDetailViewAction, Poi poi)
Invoked when an event of type PoiDetailViewAction occurs Unit
setModelAndShow(PoiDetailsView poiDetailsView, PoiDetailsModel poiDetailsModel, Boolean isFromNavigation, Boolean isFromMapClick)
Invoked when it's needed to show the PoiDetailsView view Unit
setLoading(PoiDetailsView poiDetailsView, Boolean isLoading)
Invoked when calculating the route to the shown poi starts which its self is invoked when the "Directions" button is clicked Unit
setBottomButtonEnabled(PoiDetailsView poiDetailsView, Boolean isEnabled)
Invoke to enable/disable bottom button at PoiDetailsView -
-
Method Detail
-
onPoiDetailViewAction
Unit onPoiDetailViewAction(PoiDetailsView poiDetailsView, PoiDetailViewAction poiDetailViewAction, Poi poi)
Invoked when an event of type PoiDetailViewAction occurs
-
setModelAndShow
Unit setModelAndShow(PoiDetailsView poiDetailsView, PoiDetailsModel poiDetailsModel, Boolean isFromNavigation, Boolean isFromMapClick)
Invoked when it's needed to show the PoiDetailsView view
- Parameters:
poiDetailsView
- reference to the PoiDetailsView for easy accesspoiDetailsModel
- wrapper object that contains the PoiisFromNavigation
- to show / or hide Search view.isFromMapClick
- Flag about whether poi event triggered from map or somewhere else (e.g.
-
setLoading
Unit setLoading(PoiDetailsView poiDetailsView, Boolean isLoading)
Invoked when calculating the route to the shown poi starts which its self is invoked when the "Directions" button is clicked
- Parameters:
poiDetailsView
- reference to the PoiDetailsView for easy accessisLoading
- information whether it is loading or not
-
setBottomButtonEnabled
Unit setBottomButtonEnabled(PoiDetailsView poiDetailsView, Boolean isEnabled)
Invoke to enable/disable bottom button at PoiDetailsView
- Parameters:
poiDetailsView
- reference to the PoiDetailsView for easy accessisEnabled
- true to enable, false otherwise
-
-
-
-