setLocationSources

open fun setLocationSources(@NonNull locationSources: List<MPLocationSource>, @Nullable onResultReadyListener: OnResultReadyListener)

Sets one or more location data sources

Note that if this method or addLocationSources is not invoked a MapsIndoors data source will be used

When this method is invoked, getLocations will be called on all the location sources registered

Parameters

locationSources

One or more MPLocationSource

onResultReadyListener

An optional callback

Throws

if the SDK hasn't been initialized (by invoking initialize) or if location sources had already been added

if the given location sources have non-zero or negative source IDs