toggle menu
ktx
jvm
switch theme
search in API
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