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 TypeMethodDescriptionReturn 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
-
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
-