java.lang.Object | ||||
↳ | AndroidViewModel | |||
↳ | com.mapsted.ui.base.BaseViewModel | |||
↳ | com.mapsted.ui.map.CommonViewModel | |||
↳ | com.mapsted.ui.map.MapViewModel |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | MapViewModel.RouteRequestError |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | addTagToItinerary(Tag tag) | ||||||||||
void |
createCustomTag(TagInfo tagInfo, MercatorZone mercatorZone, Consumer<Tag> resultCallback)
This method use only for client side requirement for tag creation
| ||||||||||
static ViewModelProvider.Factory | createProvider(Application application, MapUiApi mapUiApi) | ||||||||||
void | createTag(Tag tag) | ||||||||||
void | deleteCustomTag(int tagId, Consumer<Tag> resultCallback) | ||||||||||
void | deleteCustomTags(ArrayList<Integer> tagIds, Consumer<Boolean> resultCallback) | ||||||||||
void | deleteTag(Tag tag) | ||||||||||
void | detachMapFragment() | ||||||||||
static void | extractRoutingParams(Context context, CoreApi coreApi, List<DeeplinkData.Destination> destinationList, Consumer<List<ISearchable>> consumer) | ||||||||||
|
getCustomTagDisplay() | ||||||||||
|
getCustomTagEvent() | ||||||||||
void | getEstimation(SearchResult searchResult) | ||||||||||
|
getIsUserPositionAvailable() | ||||||||||
|
getItineraryMessageToShow()
Itinerary manager handles the messages to show to the user.
| ||||||||||
|
getLastRoutingResponseLiveData() | ||||||||||
|
getMultiLocationLiveData() | ||||||||||
SingleLiveEvent<Boolean> | getNavigateToEntityDetails() | ||||||||||
|
getRecentSearchItemsLiveData() | ||||||||||
|
getRoutePreviewSelectedRouteLiveData() | ||||||||||
|
getRoutePreviewSelectedRouteSegmentLiveData() | ||||||||||
|
getRoutingRequestErrorEvent() | ||||||||||
String | getRoutingStartMsg() | ||||||||||
Entity | getSelectedEntity() | ||||||||||
BuildingData | getSelectedLocationBuildingData() | ||||||||||
String | getSelectedLocationBuildingName() | ||||||||||
Tag | getSelectedTag() | ||||||||||
|
getShowArbitraryLocationLiveData() | ||||||||||
|
getShowAssistedPositioningBtn() | ||||||||||
|
getShowChooseDestinationSearchDialogLiveData() | ||||||||||
|
getShowCreateTagLiveData() | ||||||||||
|
getShowEditTagLiveData() | ||||||||||
|
getShowItineraryLiveData() | ||||||||||
|
getShowMapOverlayItemDetailLiveData() | ||||||||||
|
getShowNavigationViewLiveData() | ||||||||||
|
getShowProgressBarEventLiveData() | ||||||||||
|
getShowRouteOptionsLiveData() | ||||||||||
|
getShowRoutePreviewGoBtnLiveData() | ||||||||||
|
getShowRoutePreviewLiveData() | ||||||||||
|
getShowRoutingStepsLiveData() | ||||||||||
|
getShowSelectedEntityDetailLiveData() | ||||||||||
|
getShowSelectedTagLiveData() | ||||||||||
|
getShowTagDetailLiveData() | ||||||||||
|
getShowTagOptionLiveData() | ||||||||||
|
getShowTagsLiveData() | ||||||||||
|
getTags() | ||||||||||
|
getTagsListLiveData() | ||||||||||
|
getTagsMapPinsVisibilityLiveData() | ||||||||||
|
getZoneChangeConfirmationLiveData() | ||||||||||
|
getZoneLiveData() | ||||||||||
String | getmSearchQueryText() | ||||||||||
void | handleMapClickEvents(MapClickEvent event) | ||||||||||
void | hideProgressBar() | ||||||||||
synchronized boolean | isBottomSheetLoadingInProgress() | ||||||||||
boolean | isSelectedEntityNameAvailable() | ||||||||||
boolean | isTagNameExist(String tagName, Consumer<Boolean> result) | ||||||||||
void | loadTags(int propertyId) | ||||||||||
void |
moveItineraryStop(int fromPosition, int toPosition)
Method to move change elements from the itinerary list specifying from and to positions.
| ||||||||||
void | onAddToItineraryClicked(ItineraryItem itineraryItem) | ||||||||||
void | onDestinationReached(Waypoint destination) | ||||||||||
void | onErrorMessage(String msg) | ||||||||||
void |
onMapSearchResultSelected(SearchResult searchResult)
Navigate map to entity id location within the map
| ||||||||||
void | onMyLocationSelected(int selectedADestinationIndex) | ||||||||||
void | onNewDestinationSelected(ItineraryItem itineraryItem, int index) | ||||||||||
void |
onRouteOptionsButtonClicked()
Method to handle a click event on Route Options button.
| ||||||||||
void |
onRoutePreviewDismissed()
Clean-up route preview states
| ||||||||||
void |
onSearchResultSelected(SearchResult searchResult)
Navigate map to entity id location from the outside the map
| ||||||||||
void |
onSwapItineraryItemsClicked()
Method that that swaps destinations when only two are on list.
| ||||||||||
void | onTagClicked() | ||||||||||
void | onViewStepsClicked(int routeIdx) | ||||||||||
void | postCustomTagEvent() | ||||||||||
void | postShowRoutePreview(RoutingResponse routingResponse) | ||||||||||
void | processItineraryNavigationRequest() | ||||||||||
void |
removeItineraryItem(ItineraryItem itineraryItem)
Method to remove elements from the itinerary list specifying the position.
| ||||||||||
void |
removeItineraryItemByIdx(int idx)
Method to remove elements by swiping them from the itinerary list specifying the position.
| ||||||||||
void | requestAllCustomsTags(Consumer<List<Tag>> resultCallback) | ||||||||||
void | requestRouting(List<ItineraryItem> itineraryItems, Consumer<Void> onComplete) | ||||||||||
void | resetLastRoutingResponseLiveData() | ||||||||||
void | resetMultiLocationLiveData() | ||||||||||
synchronized void | selectBuilding(int propertyId, int buildingId) | ||||||||||
void | selectEntity(Entity entity) | ||||||||||
void | selectEntity(EntityZone entityZone) | ||||||||||
void | selectMapOverlayItemDetail(MapOverlayItem mapOverlayItem) | ||||||||||
synchronized void | selectSearchEntityById(String searchEntityId) | ||||||||||
void | selectedFloor(int buildingId, int floorId) | ||||||||||
void | setLastRoutingResponseLiveData(RoutingResponse routeResponse) | ||||||||||
void | setRecentSearchItemsLiveData(List<SearchResultItem> recentList) | ||||||||||
void | setRoutePreviewState(Route route, int routeIdx, int segmentIdx) | ||||||||||
void | setSelectedLocationBuildingData(int buildingId) | ||||||||||
void | setShowSelectedEntityDetailLiveData(Entity entity) | ||||||||||
void | setStartTagToItinerary(Tag tag) | ||||||||||
void | setTagsMapPinsVisibilityLiveData(Boolean show) | ||||||||||
void | showAllCustomTagsOnMap(boolean show) | ||||||||||
void | showArbitraryLocationLiveData(ArbitraryLocation arbitraryLocation) | ||||||||||
void | showChooseDestinationSearchDialogFragment(ItineraryItem itemToReplace, int positionToReplace) | ||||||||||
void | showCreateTag() | ||||||||||
void | showDeeplinkMap() | ||||||||||
void | showEditTag(Tag tag) | ||||||||||
void | showItinerary() | ||||||||||
void | showMyTags() | ||||||||||
void | showNavigationView() | ||||||||||
void | showProgressBar() | ||||||||||
void | showTagDetail(Tag tag) | ||||||||||
void | showTagDetail(int tagId) | ||||||||||
void |
updateCustomTag(TagInfo tagInfo, Consumer<Tag> resultCallback)
This method use only for client side requirement for update tag info
| ||||||||||
boolean | updateMapStatusEntityNearest(Entity entity) | ||||||||||
void | updateMapStatusEntitySpecific(Entity entity) | ||||||||||
void | updateMapTagSetting(boolean b) | ||||||||||
void | updateTag(Tag tag) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
This method use only for client side requirement for tag creation
Itinerary manager handles the messages to show to the user. The observer of this field will get and send the message to the proper method to show it to the user.
Method to move change elements from the itinerary list specifying from and to positions. After doing the pertinent data processing will send a notification to observers to update the UI.
fromPosition | Original position |
---|---|
toPosition | Destination position where will be moved |
Navigate map to entity id location within the map
Method to handle a click event on Route Options button.
Clean-up route preview states
Navigate map to entity id location from the outside the map
Method that that swaps destinations when only two are on list.
Method to remove elements from the itinerary list specifying the position. After doing the pertinent data processing will send a notification to observers to update the UI.
itineraryItem | FeedItem to remove from itinerary list |
---|
Method to remove elements by swiping them from the itinerary list specifying the position. After doing the pertinent data processing will send a notification to observers to update the UI.
idx | Index of the item to be removed |
---|
itemToReplace | if new item is being added, set to null. Otherwise set the old item here. |
---|---|
positionToReplace | position to be replaced or added. |
This method use only for client side requirement for update tag info