Interface Localization


public interface Localization
MapFactor SDK Localization module
Since:
1.0
  • Method Details

    • getLanguageFromIsoCode

      @Nullable static Localization.Language getLanguageFromIsoCode(@NonNull String isoCode)
      Get language from language ISO code
      Parameters:
      isoCode - language ISO code
      Returns:
      SDK language
      Since:
      4.1
    • getSdkLanguage

      @NonNull Localization.Language getSdkLanguage()
      Return current SDK language
      Returns:
      current SDK language
      Since:
      1.0
    • setSdkLanguage

      void setSdkLanguage(@NonNull Localization.Language language, @Nullable RestartListener restartListener)
      Set new SDK language
      Parameters:
      language - new SDK language
      restartListener - restart SDK engines listener
      Since:
      1.0
    • getMapLanguage

      @NonNull Localization.MapLanguage getMapLanguage()
      Return current map language
      Returns:
      current map language
      Since:
      1.0
    • setMapLanguage

      void setMapLanguage(@NonNull Localization.MapLanguage mapLanguage, @Nullable RestartListener restartListener)
      Set map texts language. Used to display city/town names when localized variants are available (Praha/Prague/Prag)
      Parameters:
      mapLanguage - map texts language
      restartListener - restart SDK engines listener
      Since:
      1.0