create

open fun create(@NonNull mapConfig: MPIMapConfig, @NonNull onMapControlReadyListener: OnMapControlReadyListener)

Create a new MapControl instance.

Get the created MapControl instance via the given listener OnMapControlReadyListener.

Note that new MapControl instances will only be created if the MapsIndoors SDK has initialized successfully. This method will wait until this condition has been met.

Parameters

mapConfig
onMapControlReadyListener

Throws

if more instances were created than supported