load

open fun load(@NonNull applicationContext: Context, @NonNull apiKey: String, @Nullable onMapsIndoorsReadyListener: OnMapsIndoorsReadyListener)

Loads content from the MapsIndoors solution matching the given API key. Note that this action is asynchronous.

Use the optional listener to know when the loading process has completed, and handle potential errors (network issues, api key validation, etc.)

Parameters

applicationContext

The application context (not an activity/fragment's)

apiKey

A MapsIndoors API key for a given solution

onMapsIndoorsReadyListener

An optional listener, invoked when MapsIndoors data loading is completely (potential load errors are returned here)

Throws

If the given applicationContext is not an Application context