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