ktx
Toggle table of contents
jvm
Platform filter
jvm
Switch theme
Search in API
ktx
app
/
ktx.app
/
Platform
/
runOnDesktop
run
On
Desktop
inline
fun
<
T
>
runOnDesktop
(
action
:
(
)
->
T
?
)
:
T
?
Executes
action
if the
currentPlatform
is
ApplicationType.Desktop
. Returns
action
result or null.
See also
Platform.
isDesktop