Package com.pointrlabs.core.map.handlers
Class MapWidgetEventsHandler
-
- All Implemented Interfaces:
-
com.pointrlabs.core.management.PTRListener
,com.pointrlabs.core.map.models.events_listeners.MapWidgetEventsListener
public class MapWidgetEventsHandler implements MapWidgetEventsListener
-
-
Field Summary
Fields Modifier and Type Field Description private final WeakReference<PTRMapWidgetFragment>
mapWidgetFragment
-
Constructor Summary
Constructors Constructor Description MapWidgetEventsHandler(PTRMapWidgetFragment mapWidgetFragment)
-
Method Summary
Modifier and Type Method Description final WeakReference<PTRMapWidgetFragment>
getMapWidgetFragment()
Unit
onDidStartLoading()
Unit
onFailure(PTRError error)
Unit
onMapWidgetWillDisplayPathfinding()
This function will be called when map widget is about to present path finding UI components. Unit
onMapWidgetWillDismissPathfinding()
This function will be called when map widget is about to dismiss pathfinding UI components. Unit
onMapLoadStateUpdate(PtrDataLoadState ptrDataLoadState)
This function is triggered when load state of map is changed. Unit
onDidEndLoading(String error)
Unit
onDidShowComponents(Function0<Unit> action)
-
-
Constructor Detail
-
MapWidgetEventsHandler
MapWidgetEventsHandler(PTRMapWidgetFragment mapWidgetFragment)
-
-
Method Detail
-
getMapWidgetFragment
final WeakReference<PTRMapWidgetFragment> getMapWidgetFragment()
-
onDidStartLoading
Unit onDidStartLoading()
-
onMapWidgetWillDisplayPathfinding
Unit onMapWidgetWillDisplayPathfinding()
This function will be called when map widget is about to present path finding UI components.
-
onMapWidgetWillDismissPathfinding
Unit onMapWidgetWillDismissPathfinding()
This function will be called when map widget is about to dismiss pathfinding UI components.
-
onMapLoadStateUpdate
Unit onMapLoadStateUpdate(PtrDataLoadState ptrDataLoadState)
This function is triggered when load state of map is changed.
- Parameters:
ptrDataLoadState
- current PtrDataLoadState.
-
onDidEndLoading
Unit onDidEndLoading(String error)
-
onDidShowComponents
Unit onDidShowComponents(Function0<Unit> action)
-
-
-
-