LocalePreferences.TemperatureUnit


public class LocalePreferences.TemperatureUnit


APIs to get the user's preference of temperature unit.

Summary

Constants

static final String
CELSIUS = "celsius"

Celsius

static final String
DEFAULT = ""

Default Temperature for the locale

static final String
FAHRENHEIT = "fahrenhe"

Fahrenheit

static final String
KELVIN = "kelvin"

Kelvin

Constants

CELSIUS

Added in 1.12.0
public static final String CELSIUS = "celsius"

Celsius

DEFAULT

Added in 1.12.0
public static final String DEFAULT = ""

Default Temperature for the locale

FAHRENHEIT

Added in 1.12.0
public static final String FAHRENHEIT = "fahrenhe"

Fahrenheit

KELVIN

Added in 1.12.0
public static final String KELVIN = "kelvin"

Kelvin