Package com.mapfactor.sdk.utils
Interface Localization
public interface Localization
MapFactor SDK Localization module
- Since:
- 1.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
App languagesstatic enum
Language to show map texts. -
Method Summary
Modifier and TypeMethodDescriptionstatic Localization.Language
getLanguageFromIsoCode
(String isoCode) Get language from language ISO codeReturn current map languageReturn current SDK languagevoid
setMapLanguage
(Localization.MapLanguage mapLanguage, RestartListener restartListener) Set map texts language.void
setSdkLanguage
(Localization.Language language, RestartListener restartListener) Set new SDK language
-
Method Details
-
getLanguageFromIsoCode
Get language from language ISO code- Parameters:
isoCode
- language ISO code- Returns:
- SDK language
- Since:
- 4.1
-
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 languagerestartListener
- restart SDK engines listener- Since:
- 1.0
-
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 languagerestartListener
- restart SDK engines listener- Since:
- 1.0
-