MapSelectionManager

Class used for selecting property and building and caching them if necessary

Constructors

Link copied to clipboard
constructor(context: Context, mapApi: MapstedMapApi, mapPackageDownloader: MapPackageDownloader)
Constructor for creating MapSelectionManager object and registering building change listener

Types

Functions

Link copied to clipboard
Method to get selected location consisting of selected property and building
Link copied to clipboard
open fun onDestroy()
Cleanup method called when the component is being destroyed.
Link copied to clipboard
open fun onNearbyPropertiesAdded(properties: Set<Integer>)
Method overridden when the near by properties are added
Link copied to clipboard
open fun onNearbyPropertiesRemoved(properties: Set<Integer>)
Method overridden when the nearby properties are removed
Link copied to clipboard
open fun selectAndCacheProperty(propertyId: Int, @Nullable onComplete: Consumer<Boolean>)
Method to select and cache property
Link copied to clipboard
open fun setSelectedBuildingId(buildingId: Int, @Nullable onComplete: Consumer<Boolean>)
Synchronized method to set the selected building using the buildingId
Link copied to clipboard
open fun setSelectedPropertyId(newPropertyId: Int, @Nullable onComplete: Consumer<Boolean>)
Synchronized method to set the selected property