onPlatform

fun onPlatform(    kInfoState: KInfoState = KInfoState(),     onAndroid: (AndroidInfo) -> Unit? = null,     onIos: (IosInfo) -> Unit? = null,     onDesktop: (DesktopInfo) -> Unit? = null,     onWeb: (WebInfo) -> Unit? = null)

Method to execute different actions based on the current platform where this method has been invoked

Parameters

kInfoState

The state used to retrieve the device information

onAndroid

The action to execute on an DevicePlatform.ANDROID device

onIos

The action to execute on an DevicePlatform.IOS device

onDesktop

The action to execute on a DevicePlatform.DESKTOP device

onWeb

The action to execute on an DevicePlatform.WEB device