initialize

open fun initialize(@NonNull appContext: Context, @NonNull apiKey: String): Boolean

Initializes the SDK

Return

True if the given MapsIndoors API Key (apikey) could be set, false if this has already been called, etc.

Parameters

appContext

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

apiKey

A MapsIndoors API key for this solution. Mandatory.

Throws

if the given appContext is not an Application context

if the given API key has an invalid format


open fun initialize(    @NonNull appContext: Context,     @NonNull apiKey: String,     @NonNull onLoadingDataReadyListener: OnLoadingDataReadyListener): Boolean

Initializes the SDK

Return

True if the given MapsIndoors API Key (apikey) could be set, false if this has already been called, etc.

Parameters

appContext

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

apiKey

A MapsIndoors API key for this solution. Mandatory.

onLoadingDataReadyListener

a listener to report back when data is loaded or an error happens while trying to load data

Throws

if the given appContext is not an Application context

if the given API key has an invalid format