java.lang.Object | ||||
↳ | AndroidViewModel | |||
↳ | com.mapsted.ui.base.BaseViewModel | |||
↳ | com.mapsted.ui.map.CommonViewModel | |||
↳ | com.mapsted.ui.map.MapViewModel |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | MapViewModel.RouteRequestError |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public
final
|
mapStatusLiveData |
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 List<ISearchable> | extractRoutingParams(CoreApi coreApi, int propertyId, List<DeeplinkData.Destination> destinationList) | ||||||||||
|
getAlertsIdsList() | ||||||||||
|
getCustomTagDisplay() | ||||||||||
|
getCustomTagEvent() | ||||||||||
void | getEstimation(SearchResult searchResult) | ||||||||||
|
getIsUserPositionAvailable() | ||||||||||
|
getItineraryMessageToShow()
Itinerary manager handles the messages to show to the user.
| ||||||||||
|
getLastRoutingResponseLiveData() | ||||||||||
|
getMultiLocationLiveData() | ||||||||||
SingleLiveEvent<Boolean> | getNavigateToEntityDetails() | ||||||||||
|
getRecentSearchItemsLiveData() | ||||||||||
|
getRouteNodeDistanceTimeMapLiveData()
Getter for route node and distance and time map
| ||||||||||
|
getRoutingRequestErrorEvent() | ||||||||||
String | getRoutingStartMsg() | ||||||||||
Entity | getSelectedEntity() | ||||||||||
BuildingData | getSelectedLocationBuildingData() | ||||||||||
String | getSelectedLocationBuildingName() | ||||||||||
Tag | getSelectedTag() | ||||||||||
|
getShowArbitraryLocationLiveData() | ||||||||||
|
getShowAssistedPositioningBtn() | ||||||||||
|
getShowChooseDestinationSearchDialogLiveData() | ||||||||||
|
getShowCreateTagLiveData() | ||||||||||
|
getShowEditTagLiveData() | ||||||||||
|
getShowItineraryLiveData() | ||||||||||
|
getShowMapOverlayItemDetailLiveData() | ||||||||||
|
getShowNavigationViewLiveData() | ||||||||||
|
getShowProgressBarEventLiveData() | ||||||||||
|
getShowRouteOptionsLiveData() | ||||||||||
|
getShowRoutePreviewLiveData() | ||||||||||
|
getShowRoutingStepsLiveData() | ||||||||||
|
getShowSelectedEntityDetailLiveData() | ||||||||||
|
getShowSelectedTagLiveData() | ||||||||||
|
getShowTagDetailLiveData() | ||||||||||
|
getShowTagOptionLiveData() | ||||||||||
|
getShowTagsLiveData() | ||||||||||
|
getTags() | ||||||||||
|
getTagsListLiveData() | ||||||||||
|
getTagsMapPinsVisibilityLiveData() | ||||||||||
|
getZoneChangeConfirmationLiveData() | ||||||||||
|
getZoneLiveData() | ||||||||||
String | getmSearchQueryText() | ||||||||||
void | handleMapClickEvents(MapClickEvent event) | ||||||||||
|
hasAlertAvailable() | ||||||||||
void | hideProgressBar() | ||||||||||
void | init() | ||||||||||
boolean | isSelectedEntityNameAvailable() | ||||||||||
boolean | isTagNameExist(String tagName, Consumer<Boolean> result) | ||||||||||
boolean | isUserAtRouteProperty(Route route) | ||||||||||
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 |
onSearchResultSelected(SearchResult searchResult)
Navigate map to entity id location from the outside the map
| ||||||||||
void |
onStopRemoved(ItineraryItem itineraryItem)
Method to remove elements from the itinerary list specifying the position.
| ||||||||||
void |
onSwapItineraryItemsClicked()
Method that that swaps destinations when only two are on list.
| ||||||||||
void | onTagClicked() | ||||||||||
void | onViewStepsClicked() | ||||||||||
void | postCustomTagEvent() | ||||||||||
void | processItineraryNavigationRequest() | ||||||||||
void | processMapstedMapNotification(MapstedMapNotification.Type type, Object payload) | ||||||||||
void | requestAllCustomsTags(Consumer<List<Tag>> resultCallback) | ||||||||||
void | requestRouting(List<ItineraryItem> itineraryItems, Consumer<Void> onComplete) | ||||||||||
void | resetLastRoutingResponseLiveData() | ||||||||||
void | resetMultiLocationLiveData() | ||||||||||
void | resetShowViewStepsLiveData() | ||||||||||
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 | setSelectedLocationBuildingData(int buildingId) | ||||||||||
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 | showEditTag(Tag tag) | ||||||||||
void | showItinerary() | ||||||||||
void | showMyTags() | ||||||||||
void | showNavigationView() | ||||||||||
void | showProgressBar() | ||||||||||
void | showTagDetail(Tag tag) | ||||||||||
void | showTagDetail(int tagId) | ||||||||||
void |
swipeItineraryStop(int position)
Method to remove elements by swiping them from the itinerary list specifying the position.
| ||||||||||
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.
Getter for route node and distance and time map
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.
Navigate map to entity id location from the outside the map
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 that that swaps destinations when only two are on list.
itemToReplace | if new item is being added, set to null. Otherwise set the old item here. |
---|---|
positionToReplace | position to be replaced or added. |
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.
position | Position of the item to be removed after swipe |
---|
This method use only for client side requirement for update tag info