Yokan / rebuild
Course 1 8624561

DeviceCapabilities.kt

composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/services/system/DeviceCapabilities.kt

implementation17 lines
1package eu.friedcutlet.yokan.services.system23/** Platform capability seam; Android is the only target that currently reports TV. */4expect fun isTvDevice(): Boolean56internal expect fun isLocalLibraryManagerSupported(): Boolean78/** Managed-heap use of this process; [maxBytes] is the ceiling the runtime will grow to. */9internal data class ProcessMemoryUsage(val usedBytes: Long, val maxBytes: Long)1011/** Null where the runtime exposes no cheap heap numbers (iOS, the browser). */12internal expect fun processMemoryUsage(): ProcessMemoryUsage?1314internal fun useRailNavigation(isTv: Boolean, compact: Boolean): Boolean = isTv || !compact1516internal fun showBottomNavigation(isTv: Boolean, compact: Boolean, showRootNav: Boolean): Boolean =17    compact && !isTv && showRootNav18

Search chapters, reference and source filenames.