INNER CODE UNIT · Kotlin

Content

komikku-app/komikku · app/src/main/java/exh/debug/SettingsDebugScreen.kt:74

    override fun Content() {
        val scope = rememberCoroutineScope()
        // KMK -->
        // val navigator = LocalNavigator.currentOrThrow
        // DisposableEffect(Unit) {
        //     onDispose { navigator.pop() }
        // }
        // KMK <--
        val functions by produceState<ImmutableList<Pair<KFunction<*>, String>>?>(initialValue = null) {
            value = withContext(Dispatchers.Default) {
                DebugFunctions::class.declaredFunctions.filter {
                    it.visibility == KVisibility.PUBLIC
                }.map {
                    it to it.name.replace("(.)(\\p{Upper})".toRegex(), "$1 $2")
                        .lowercase(Locale.getDefault())
                        .capitalize(Locale.getDefault())
                }.toImmutableList()
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…