checkAPIKeyValidity

open fun checkAPIKeyValidity(@NonNull listener: OnResultReadyListener)

Checks if the currently set API Key set is still a valid one

Note that this method should only be used if the SDK has been already initialized

Parameters

listener

A mandatory listener


open fun checkAPIKeyValidity(@NonNull apiKey: String, @NonNull listener: OnResultReadyListener)

Check if the given MapsIndoors API Key is a valid one

Note that the SDK doesn't need to be initialized in order to call this method

Possible callback error values:

  • null if the given api key was a valid one
  • INVALID_API_KEY if the given api key doesn't exists or did expire (case of a PoC)
  • NETWORK_ERROR if there was any network related issue when this method was invoked
  • UNKNOWN_ERROR

Parameters

apiKey

A MapsIndoors API Key

listener

A mandatory listener