sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
core
/
androidx.core.text.util
/
LocalePreferences
/
TemperatureUnit
Temperature
Unit
open
class
TemperatureUnit
(
source
)
APIs to get the user's preference of temperature unit.
Members
Types
Temperature
Units
Link copied to clipboard
@
RestrictTo
(
value
=
RestrictTo.Scope.LIBRARY
)
@
Retention
(
value
=
RetentionPolicy.SOURCE
)
annotation class
TemperatureUnits
Properties
CELSIUS
Link copied to clipboard
val
CELSIUS
:
String
=
"celsius"
Celsius
DEFAULT
Link copied to clipboard
val
DEFAULT
:
String
=
""
Default Temperature for the locale
FAHRENHEIT
Link copied to clipboard
val
FAHRENHEIT
:
String
=
"fahrenhe"
Fahrenheit
KELVIN
Link copied to clipboard
val
KELVIN
:
String
=
"kelvin"
Kelvin