This site requires javascript.
Android Code Search
file:androidx/health/connect/client/units/Energy.kt symbol:kilojoules
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
48:
49:
50:
@
get
:JvmName(
"getKilojoules"
)
val
in
Kilojoules
: Double
get
() = get(type = Type.KILOJOULES)
92:
93:
94:
/** Creates [Energy] with the specified value in kilojoules. */
@JvmStatic
fun
kilojoules
(value: Double): Energy = Energy(value, Type.KILOJOULES)
}
108:
109:
110:
},
KILOJOULES
{
override
val
caloriesPerUnit: Double =
239.0057361
180:
181:
182:
@
get
:JvmSynthetic
val
Double.
kilojoules
: Energy
get
() = Energy.kilojoules(value = this)
185:
186:
187:
@
get
:JvmSynthetic
val
Long.
kilojoules
: Energy
get
() = toDouble().kilojoules
190:
191:
192:
@
get
:JvmSynthetic
val
Float.
kilojoules
: Energy
get
() = toDouble().kilojoules
195:
196:
197:
@
get
:JvmSynthetic
val
Int.
kilojoules
: Energy
get
() = toDouble().kilojoules
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