AppScreen
fun AppScreen(viewModel: ERROR CLASS: Symbol not found for AppScreenViewModel = koinViewModel(), autoReadoutListViewModel: ERROR CLASS: Symbol not found for AutoReadoutListViewModel = koinViewModel(), telemetryLogListViewModel: ERROR CLASS: Symbol not found for TelemetryLogListViewModel = koinViewModel(), otherListViewModel: ERROR CLASS: Symbol not found for OtherListViewModel = koinViewModel(), backHandler: AppBackHandler = { _, _, _ -> }, onDarkThemeChanged: (Boolean) -> Unit = {}, autoReadoutContent: (scrollToTopRequest: Int) -> Unit = { scrollToTopRequest ->
AutoReadoutContent(
backHandler = backHandler,
scrollToTopRequest = scrollToTopRequest,
detailContent = { itemType -> ReadoutItemDetailContent(itemType) },
)
}, telemetryLogContent: (scrollToTopRequest: Int, onFeedbackClick: (Long) -> Unit) -> Unit = {
scrollToTopRequest,
onFeedbackClick,
->
TelemetryLogContent(
backHandler = backHandler,
scrollToTopRequest = scrollToTopRequest,
onFeedbackClick = onFeedbackClick,
detailContent = { id ->
TelemetryLogDetailContent(id = id)
},
)
}, manualReadoutContent: (selectedSimulatorId: String, tabReselectRequest: Int) -> Unit = { selectedSimulatorId, tabReselectRequest ->
key(selectedSimulatorId) {
ManualReadoutContent(
simulatorId = selectedSimulatorId,
tabReselectRequest = tabReselectRequest,
simulatorName = appScreenPrimarySimulatorLabel(selectedSimulatorId),
backHandler = backHandler,
detailContent = { setId, canNavigateBack, onBack ->
ManualReadoutSetDetailContent(
simulatorId = selectedSimulatorId,
setId = setId,
onDeleted = onBack,
canNavigateBack = canNavigateBack,
onBack = onBack,
)
},
)
}
}, otherContent: (scrollToTopRequest: Int, selectedSimulatorId: String) -> Unit = { scrollToTopRequest, selectedSimulatorId ->
DefaultOtherContent(
selectedSimulatorId = selectedSimulatorId,
backHandler = backHandler,
scrollToTopRequest = scrollToTopRequest,
)
})
AppScreen を提供する公開関数。