| com.mapsted.positioning.CoreApi.Buildings |
Use BuildingManager to get building related information and functionalities
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
downloadAndCache(int buildingId, Consumer<BuildingData> callback)
Get
BuildingData from core library based on its building id. | ||||||||||
| abstract void |
getBuildingData(int buildingId, Consumer<BuildingData> callback)
Returns cached building data if available, otherwise downloads and returns that data.
| ||||||||||
| abstract BuildingInfo |
getBuildingInfo(int buildingId)
Get
BuildingInfo corresponding to a specific building id. | ||||||||||
| abstract BuildingData |
getCachedBuildingData(int buildingId)
Get a building's
BuildingData from core library based on its
building id. | ||||||||||
| abstract boolean |
isCached(int buildingId)
Checkes whether a given building is cached in memory
| ||||||||||
Get BuildingData from core library based on its building id.
Note: This function should be called on a background thread.
| buildingId | The stored building's building id. |
|---|---|
| callback | callback |
Returns cached building data if available, otherwise downloads and returns that data.
| callback | callback with BuildingData cached or downloaded. May be null if download fails. |
|---|
Get BuildingInfo corresponding to a specific building id.
BuildingInfo contains all information of a building such as the building's id, the name of the building, X and Y coordinates etc.
| buildingId | Building id corresponding to the BuildingInfo returned. |
|---|
BuildingInfo
Get a building's BuildingData from core library based on its
building id.
| buildingId | The stored building's building id. |
|---|
BuildingData
Checkes whether a given building is cached in memory
| buildingId | the building to test |
|---|