fetchBuildingInfo method

Future<BuildingInfo> fetchBuildingInfo(
  1. String buildingIdentifier
)

Downloads all the building data for the selected building. This info includes Floors, indoor and outdoor Pois, events and paths. It also download floor maps and PoiCategory icons to local storage.

Implementation

Future<BuildingInfo> fetchBuildingInfo(String buildingIdentifier) async {
  Map response = await methodChannel.invokeMethod(
      "fetchBuildingInfo", {"buildingIdentifier": buildingIdentifier});
  return createBuildingInfo(response);
}