Class ScaleBarOptions.LocaleUnitResolver
java.lang.Object
com.trimblemaps.mapsdk.plugins.scalebar.ScaleBarOptions.LocaleUnitResolver
- Enclosing class:
ScaleBarOptions
Helper class to determine the user measuring system.
Currently supports differentiating between metric vs imperial system.
Depends on Locale.getDefault() which returns the locale used at application startup.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns true if the user is in a country using the metric system.
-
Constructor Details
-
LocaleUnitResolver
public LocaleUnitResolver()
-
-
Method Details
-
isMetricSystem
public static boolean isMetricSystem()Returns true if the user is in a country using the metric system.- Returns:
- true if user country is using metric, false if imperial
-