This site requires javascript.
Android Code Search
file:androidx/health/connect/client/units/Energy.kt symbol:kilocalories
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
health/connect/connect-client/src/main/java/androidx/health/connect/client/units/
Energy.kt
content_copy
Preview
38:
39:
40:
@
get
:JvmName(
"getKilocalories"
)
val
in
Kilocalories
: Double
get
() = get(type = Type.KILOCALORIES)
86:
87:
88:
/** Creates [Energy] with the specified value in kilocalories. */
@JvmStatic
fun
kilocalories
(value: Double): Energy = Energy(value, Type.KILOCALORIES)
100:
101:
102:
},
KILOCALORIES
{
override
val
caloriesPerUnit: Double =
1000.0
140:
141:
142:
@
get
:JvmSynthetic
val
Double.
kilocalories
: Energy
get
() = Energy.kilocalories(value = this)
145:
146:
147:
@
get
:JvmSynthetic
val
Long.
kilocalories
: Energy
get
() = toDouble().kilocalories
150:
151:
152:
@
get
:JvmSynthetic
val
Float.
kilocalories
: Energy
get
() = toDouble().kilocalories
155:
156:
157:
@
get
:JvmSynthetic
val
Int.
kilocalories
: Energy
get
() = toDouble().kilocalories
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main