# LocalePreferences.TemperatureUnit

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/text/util/LocalePreferences.java+class:androidx.core.text.util.LocalePreferences.TemperatureUnit) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

*** ** * ** ***


```
public class LocalePreferences.TemperatureUnit
```

<br />

*** ** * ** ***

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

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/text/util/LocalePreferences.TemperatureUnit#CELSIUS() = "celsius"` Celsius |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/text/util/LocalePreferences.TemperatureUnit#DEFAULT() = ""` Default Temperature for the locale |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/text/util/LocalePreferences.TemperatureUnit#FAHRENHEIT() = "fahrenhe"` Fahrenheit |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/text/util/LocalePreferences.TemperatureUnit#KELVIN() = "kelvin"` Kelvin |

## Constants

### CELSIUS

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String CELSIUS = "celsius"
```

Celsius

### DEFAULT

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String DEFAULT = ""
```

Default Temperature for the locale

### FAHRENHEIT

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String FAHRENHEIT = "fahrenhe"
```

Fahrenheit

### KELVIN

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String KELVIN = "kelvin"
```

Kelvin