getPreferredUnits

If UnitSystem is set to UnitSystem.AUTO, this method returns the units based on the device's locale settings. If UnitSystem is set to a non-auto value, the method returns the preferred units.

Important: This is a Public Preview API. It may be changed or removed at any time.