DataSources

interface DataSources

Access/manage map-related data sources and current selections

Inheritors

Functions

Link copied to clipboard
abstract fun addMapSelectionChangeListener(mapSelectionChangeListener: MapSelectionChangeListener)
Be notified of map selection changes
Link copied to clipboard
abstract fun deselectBuilding()
Deselects the current building (property remains selected)
Link copied to clipboard
abstract fun deselectEntity(onComplete: Consumer<Boolean>)
Deselects entity if any selected
Link copied to clipboard
enable/disable automated click processing
Link copied to clipboard
abstract fun findNearestEntity(searchEntity: SearchEntity, callback: Consumer<Entity>)
Asynchronously finds the nearest Entity for the given SearchEntity by comparing all EntityZones against the user's last known position.
Link copied to clipboard
Get access to the Map Overlay Repository
Link copied to clipboard
abstract fun getSelectedEntity(): Entity
Gets the selected entity if any
Link copied to clipboard
Call this function to get the selected property/building location.
Link copied to clipboard
Link copied to clipboard
abstract fun getSelectedPropertyId(): Int
Get the currently selected property (if one is selected)
Link copied to clipboard
Check whether or not automatic click processing is enabled
Link copied to clipboard
abstract fun isBuildingPlotted(buildingId: Int): Boolean
Check whether or not a building is plotted
Link copied to clipboard
abstract fun isBuildingVisible(buildingId: Int): Boolean
Check whether or not a building is plotted and visible
Link copied to clipboard
abstract fun isPropertyPlotted(property: Int): Boolean
Check whether or not a property is plotted
Link copied to clipboard
abstract fun plotBuilding(buildingId: Int, @Nullable listener: MapApi.PlotListener)
Plotting a building on the map (without selecting it)
Link copied to clipboard
abstract fun plotProperty(propertyId: Int, @Nullable listener: MapApi.PropertyPlotListener)
Plotting a property on the map (without selecting it)
Link copied to clipboard
abstract fun refreshAndPlotMapOverlays(propertyId: Int, onComplete: Consumer<Boolean>)
refresh mapoverlay on the map
Link copied to clipboard
abstract fun removeBuildingFromMap(buildingId: Int, force: Boolean): Boolean
Remove building from map.
Link copied to clipboard
abstract fun removeMapSelectionChangeListener(mapSelectionChangeListener: MapSelectionChangeListener)
Unsubscribe from map selection change events
Link copied to clipboard
abstract fun removePropertyFromMap(propertyId: Int)
Call this function if you want to remove the property drawings from the map.
Link copied to clipboard
abstract fun removeSelectEntityPin()
Remove selected entity pin from map
Link copied to clipboard
abstract fun selectBuildingAndDrawIfNeeded(buildingId: Int, @Nullable listener: MapApi.PlotListener)
Select a specific building and plot it
Link copied to clipboard
abstract fun selectEntity(entity: Entity, onComplete: Consumer<Boolean>)
Call this function to select an entity.
Link copied to clipboard
Call this function to change the current selected property corresponding to a new selected property id.
Link copied to clipboard
abstract fun setSelectedBuilding(buildingId: Int, onComplete: Consumer<Boolean>)
Selects the given building id
Link copied to clipboard
abstract fun startPropertyDownload(context: Context, propertyId: Int, listener: PropertyDownloadManager.Listener)
Starts a property download.
Link copied to clipboard
abstract fun switchFloor(targetBuildingId: Int, targetFloorId: Int): Boolean
Call this function to perform a floor switch.