OnPlatform

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

Method to display different contents based on the current platform where this method has been invoked

Parameters

kInfoState

The state used to retrieve the device information

onAndroid

The content to display on an DevicePlatform.ANDROID device

onIos

The content to display on an DevicePlatform.IOS device

onDesktop

The content to display on a DevicePlatform.DESKTOP device

onWeb

The content to display on an DevicePlatform.WEB device