setLanguage

open fun setLanguage(@NonNull language: String): Boolean

Sets the SDK's internal language.

Use getSolution to get the current solution's available languages list (getAvailableLanguages)

By default, the SDK language can be:

  • the solution's default language (getDefaultLanguage)
  • the current device language, if the MapsIndoors data isn't available (ie: first app run without network access)

Note that the SDK language can be set before calling initialize:

     MapsIndoors.setLanguage( "fr" );
     MapsIndoors.initialize( getApplicationContext(), getString( R.string.mapsindoors_api_key, null ) );

Return

true if the given language has been successfully set. It will return false if the given language wasn't found in the solution info's available languages or this was called while synchronizing the data (synchronizeContent().

Parameters

language

The language (any of the current solution's supported ones)

Throws

if the given language is null