-
- All Implemented Interfaces:
-
com.pointrlabs.core.management.PTRListener
,com.pointrlabs.core.map.models.events_listeners.LocationUpdatesEventsListener
public class LocationUpdatesEventsHandler implements LocationUpdatesEventsListener
Default implementation of LocationUpdatesEventsListener to provide user's location to it's listeners By default listens the updates from PositionManager and advertises the location to it's listeners
Subclass to alter the behaviour
-
-
Constructor Summary
Constructors Constructor Description LocationUpdatesEventsHandler(PTRMapWidgetFragment mapWidgetFragment)
-
Method Summary
Modifier and Type Method Description Unit
handleMapLevelChange()
Call this method to handle the user pin visibility when map level changes. Unit
handleMapTrackingModeChange()
Call this method to handle the user pin visibility when map tracking mode changes. Unit
handleLocationUpdate(CalculatedLocation userLocation)
Updates several map widget's components based on the user's location This method decides blue dot's visibility and state according to received location object's state. -
-
Constructor Detail
-
LocationUpdatesEventsHandler
LocationUpdatesEventsHandler(PTRMapWidgetFragment mapWidgetFragment)
-
-
Method Detail
-
handleMapLevelChange
Unit handleMapLevelChange()
Call this method to handle the user pin visibility when map level changes.
-
handleMapTrackingModeChange
Unit handleMapTrackingModeChange()
Call this method to handle the user pin visibility when map tracking mode changes.
-
handleLocationUpdate
Unit handleLocationUpdate(CalculatedLocation userLocation)
Updates several map widget's components based on the user's location This method decides blue dot's visibility and state according to received location object's state. It also informs com.pointrlabs.core.map.handlers.TrackingModeEventsHandler about recent location detection and location lost cases.
- Parameters:
userLocation
- Current user location information
-
-
-
-