setAPIKey

open fun setAPIKey(@NonNull apiKey: String): Boolean

Sets the app's current MapsIndoors API Key When setting a new API key, current data will be cleared along with the active MapControl will have to be remade and initialized.

Return

true if the given API Key could be set. It will return false if this was called while synchronizing the data (synchronizeContent())

Parameters

apiKey

The MapsIndoors API Key

Throws

if the given API key has an invalid format

if this was invoked before the SDK was initialized or while synchronizing data (synchronizeContent()


open fun setAPIKey(@NonNull apiKey: String, @NonNull onLoadingDataReadyListener: OnLoadingDataReadyListener): Boolean

Sets the app's current MapsIndoors API Key When setting a new API key, current data will be cleared along with the active MapControl will have to be remade and initialized.

Return

true if the given API Key could be set. It will return false if this was called while synchronizing the data (synchronizeContent())

Parameters

apiKey

The MapsIndoors API Key

onLoadingDataReadyListener

A listener which will be triggered when the re-initialization of the SDK has been completed.

Throws

if the given API key has an invalid format

if this was invoked before the SDK was initialized or while synchronizing data (synchronizeContent()