Package apple.foundation.enums
Class NSMeasurementFormatterUnitOptions
- java.lang.Object
-
- apple.foundation.enums.NSMeasurementFormatterUnitOptions
-
public final class NSMeasurementFormatterUnitOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longNaturalScalee.g.static longProvidedUnite.g This ensures the formatter uses this unit even if it is not the preferred unit of the set locale.static longTemperatureWithoutUnite.g.
-
-
-
Field Detail
-
ProvidedUnit
public static final long ProvidedUnit
e.g This ensures the formatter uses this unit even if it is not the preferred unit of the set locale.- See Also:
- Constant Field Values
-
NaturalScale
public static final long NaturalScale
e.g. This would make the formatter show "12 kilometers" instead of "12000 meters". Note that setting NSMeasurementFormatterUnitOptionsNaturalScale results in scaling within the unit system of the preferred unit of the locale. To scale within the unit system of the provided unit, set NSMeasurementFormatterUnitOptionsNaturalScale | NSMeasurementFormatterUnitOptionsProvidedUnit.- See Also:
- Constant Field Values
-
TemperatureWithoutUnit
public static final long TemperatureWithoutUnit
e.g. This would display "90°" rather than "90°F" or "90°C"- See Also:
- Constant Field Values
-
-