DataSourcesImpl

Constructors

Link copied to clipboard
constructor(mapApi: MapstedMapApi)

Functions

Link copied to clipboard
open fun addMapSelectionChangeListener(mapSelectionChangeListener: MapSelectionChangeListener)
Be notified of map selection changes
Link copied to clipboard
open fun deselectBuilding()
Deselects the current building (property remains selected)
Link copied to clipboard
open fun deselectEntity(onComplete: Consumer<Boolean>)
Deselect all entities
Link copied to clipboard
enable/disable automated click processing
Link copied to clipboard
open fun findNearestEntity(searchEntity: SearchEntity, callback: Consumer<Entity>)
Finds the nearest Entity based on the given SearchEntity.
Link copied to clipboard
Get access to the Map Overlay Repository
Link copied to clipboard
Get current selected building data.
Link copied to clipboard
Gets the selected entity if any
Link copied to clipboard
Call this function to get selected building location.
Link copied to clipboard
Link copied to clipboard
Get current selected property id.
Link copied to clipboard
Check whether or not automatic click processing is enabled
Link copied to clipboard
open fun isBuildingPlotted(buildingId: Int): Boolean
Check whether or not a building is plotted
Link copied to clipboard
open fun isBuildingVisible(buildingId: Int): Boolean
Check whether or not a building is plotted and visible
Link copied to clipboard
open fun isPropertyPlotted(property: Int): Boolean
Check whether or not a property is plotted
Link copied to clipboard
open fun onDestroy()
Link copied to clipboard
open fun plotBuilding(buildingId: Int, @Nullable listener: MapApi.PlotListener)
Plotting a building on the map (without selecting it)
Link copied to clipboard
open fun plotProperty(propertyId: Int, @Nullable listener: MapApi.PropertyPlotListener)
Plotting a property on the map (without selecting it)
Link copied to clipboard
open fun refreshAndPlotMapOverlays(propertyId: Int, onComplete: Consumer<Boolean>)
refresh mapoverlay on the map
Link copied to clipboard
open fun removeBuildingFromMap(buildingId: Int, force: Boolean): Boolean
* Call this function to remove a specific building on the map
Link copied to clipboard
open fun removeMapSelectionChangeListener(mapSelectionChangeListener: MapSelectionChangeListener)
Unsubscribe from map selection change events
Link copied to clipboard
open fun removePropertyFromMap(propertyId: Int)
Call this function if you want to remove the property drawings from the map.
Link copied to clipboard
Remove selected entity pin from map
Link copied to clipboard
Select a specific building and plot it
Link copied to clipboard
open fun selectEntity(@NonNull entity: Entity, onComplete: Consumer<Boolean>)
Call this function to select an entity.
Link copied to clipboard
Call this function to changes the current selected property corresponding to a new selected property id.
Link copied to clipboard
open fun setSelectedBuilding(buildingId: Int, onComplete: Consumer<Boolean>)
Selects the given building id
Link copied to clipboard
open fun startPropertyDownload(context: Context, propertyId: Int, listener: PropertyDownloadManager.Listener)
Starts a property download.
Link copied to clipboard
open fun switchFloor(targetBuildingId: Int, targetFloorId: Int): Boolean
Call this function to perform a floor switch.
open fun switchFloor(targetBuildingId: Int, targetFloorId: Int, @Nullable onSwitched: Consumer<Boolean>): Boolean
Same as switchFloor but notifies onSwitched once the target floor is actually visible (its native layers materialized for a deferred floor).