Interface PoiDetailEventsListener
-
- 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
onPoiDetailButtonAction(PoiDetailsView poiDetailsView, PoiDetailButton poiDetailButton, Poi poi)
Invoked when an action button on the Poi Detail View is clicked. Unit
setModelAndShow(PoiDetailsView poiDetailsView, PoiDetailsModel poiDetailsModel, Boolean isFromNavigation)
Invoked when it's needed to show the PoiDetailsView view Unit
setModelAndShowWithOrigin(PoiDetailsView poiDetailsView, PoiDetailsModel poiDetailsModel, Boolean isFromNavigation, PTRPoiEventOrigin origin)
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
-
onPoiDetailButtonAction
Unit onPoiDetailButtonAction(PoiDetailsView poiDetailsView, PoiDetailButton poiDetailButton, Poi poi)
Invoked when an action button on the Poi Detail View is clicked. The SDK handles actions PoiDetailButtonAction by default using the given intent to the PoiDetailButton object. If you want to change the default behavior, please create a PoiDetailsEventsHandler class and override this method.
-
setModelAndShow
@Deprecated(message = "This method will be removed in future versions. Please use [setModelAndShowWithOrigin] instead.", replaceWith = @ReplaceWith(imports = {}, expression = "[setModelAndShowWithOrigin]")) Unit setModelAndShow(PoiDetailsView poiDetailsView, PoiDetailsModel poiDetailsModel, Boolean isFromNavigation)
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.
-
setModelAndShowWithOrigin
Unit setModelAndShowWithOrigin(PoiDetailsView poiDetailsView, PoiDetailsModel poiDetailsModel, Boolean isFromNavigation, PTRPoiEventOrigin origin)
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.origin
- indicates the origin of the poi detail event
-
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
-
-
-
-