-
- All Implemented Interfaces:
-
com.pointrlabs.core.management.PTRListener
@UiThread() public interface MapEventsListener implements PTRListener
-
-
Method Summary
Modifier and Type Method Description Unit
mapDidStartLoading(PTRMapFragment mapFragment)
This function is triggered when the map starts loading. Unit
mapDidEndLoading(PTRMapFragment mapFragment)
This function is triggered when the map finishes loading. Unit
mapDidFailToLoad(PTRMapFragment mapFragment, Exception failure)
This function is triggered when the map fails to load. Unit
mapDidReceiveTapOnPoi(PTRMapFragment mapFragment, Poi poi)
This function is triggered when a poi is tapped on the map. Unit
mapDidReceiveTap(PTRMapFragment mapFragment, CalculatedLocation tappedLocation)
This function is triggered when the map is tapped. Unit
mapDidReceiveTapOnMarker(PTRMapViewMarker marker)
s This function is triggered when the marker is tapped. Unit
mapDidChangeLevel(PTRMapFragment mapFragment, Level level, Boolean shouldZoomToLevel)
This function is triggered when the map level changes. Unit
mapDidUpdateStyle(PTRMapFragment mapFragment)
This function is triggered when Style of the map updated. Unit
mapDidChangeTrackingMode(PTRMapFragment mapFragment, MapTrackingMode previousTrackingMode, MapTrackingMode newTrackingMode)
This function is triggered when the map tracking mode changes. Unit
mapDidDetectFocusedSite(PTRMapFragment mapFragment, Site site, List<Building> buildings)
This function is triggered when the focussed site/building changes. Unit
mapDidDetectVisibleSites(PTRMapFragment mapFragment, List<Site> site, List<Building> buildings)
This function is triggered when the visible sites/buildings changes. Unit
mapDidScrollTo(PTRMapFragment mapFragment, PTRMapViewBounds bounds)
This function is triggered when the map view scrolls. Unit
mapDidRotate(PTRMapFragment mapFragment, Double rotationalDirection)
This function is triggered when the map rotates. Unit
mapDidZoom(PTRMapFragment mapFragment, Double zoomValue)
This function is triggered when the map changes the zoom level. Unit
mapDidReceiveFling(PTRMapFragment mapFragment)
Method to be triggered when a fling gesture is detected. Unit
mapDidChangeRegion(PTRMapFragment mapFragment, Boolean animated)
Method to be triggered after map changes displayed region -
-
Method Detail
-
mapDidStartLoading
Unit mapDidStartLoading(PTRMapFragment mapFragment)
This function is triggered when the map starts loading.
-
mapDidEndLoading
Unit mapDidEndLoading(PTRMapFragment mapFragment)
This function is triggered when the map finishes loading.
-
mapDidFailToLoad
Unit mapDidFailToLoad(PTRMapFragment mapFragment, Exception failure)
This function is triggered when the map fails to load.
-
mapDidReceiveTapOnPoi
Unit mapDidReceiveTapOnPoi(PTRMapFragment mapFragment, Poi poi)
This function is triggered when a poi is tapped on the map.
-
mapDidReceiveTap
Unit mapDidReceiveTap(PTRMapFragment mapFragment, CalculatedLocation tappedLocation)
This function is triggered when the map is tapped.
-
mapDidReceiveTapOnMarker
Unit mapDidReceiveTapOnMarker(PTRMapViewMarker marker)
s This function is triggered when the marker is tapped.
-
mapDidChangeLevel
Unit mapDidChangeLevel(PTRMapFragment mapFragment, Level level, Boolean shouldZoomToLevel)
This function is triggered when the map level changes.
-
mapDidUpdateStyle
Unit mapDidUpdateStyle(PTRMapFragment mapFragment)
This function is triggered when Style of the map updated.
-
mapDidChangeTrackingMode
Unit mapDidChangeTrackingMode(PTRMapFragment mapFragment, MapTrackingMode previousTrackingMode, MapTrackingMode newTrackingMode)
This function is triggered when the map tracking mode changes.
-
mapDidDetectFocusedSite
Unit mapDidDetectFocusedSite(PTRMapFragment mapFragment, Site site, List<Building> buildings)
This function is triggered when the focussed site/building changes.
-
mapDidDetectVisibleSites
Unit mapDidDetectVisibleSites(PTRMapFragment mapFragment, List<Site> site, List<Building> buildings)
This function is triggered when the visible sites/buildings changes.
-
mapDidScrollTo
Unit mapDidScrollTo(PTRMapFragment mapFragment, PTRMapViewBounds bounds)
This function is triggered when the map view scrolls.
- Parameters:
bounds
- New visible bounds after scrolling
-
mapDidRotate
Unit mapDidRotate(PTRMapFragment mapFragment, Double rotationalDirection)
This function is triggered when the map rotates.
- Parameters:
rotationalDirection
- Rotational direction in degrees clockwise from true north.
-
mapDidZoom
Unit mapDidZoom(PTRMapFragment mapFragment, Double zoomValue)
This function is triggered when the map changes the zoom level.
- Parameters:
zoomValue
- The new zoom level.
-
mapDidReceiveFling
Unit mapDidReceiveFling(PTRMapFragment mapFragment)
Method to be triggered when a fling gesture is detected.
-
mapDidChangeRegion
Unit mapDidChangeRegion(PTRMapFragment mapFragment, Boolean animated)
Method to be triggered after map changes displayed region
- Parameters:
animated
- True if the change was animated, false otherwise.
-
-
-
-