prefetchPositioningInfo method

Future<String> prefetchPositioningInfo(
  1. List<String> buildingIdentifiers, {
  2. PrefetchOptions? options,
})

Downloads all the necessary information to start positioning. This includes Building, BuildingInfo and the building's model. Downloaded information will be saved in cache.

Implementation

Future<String> prefetchPositioningInfo(
  List<String> buildingIdentifiers, {
  PrefetchOptions? options,
}) async {
  Map<String, dynamic> optionsMap = {};
  if (options != null) {
    optionsMap = {
      "preloadImages": options.preloadImages,
    };
  }
  return await methodChannel.invokeMethod("prefetchPositioningInfo", {
    "buildingIdentifiers": buildingIdentifiers,
    "optionsMap": optionsMap,
  });
}