All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.copperleaf.ballast.debugger.BallastDebuggerInterceptor.kt Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package com.copperleaf.ballast.debugger

import com.copperleaf.ballast.BallastInterceptor
import com.copperleaf.ballast.BallastInterceptorScope
import com.copperleaf.ballast.BallastLogger
import com.copperleaf.ballast.BallastNotification
import kotlinx.coroutines.flow.Flow
import kotlin.time.ExperimentalTime

@ExperimentalTime
public class BallastDebuggerInterceptor(
    private val connection: BallastDebuggerClientConnection<*>,
) : BallastInterceptor {

    override fun BallastInterceptorScope.start(notifications: Flow>) {
        with(connection) {
            connectViewModel(
                notifications = notifications,
            )
        }
    }

    override suspend fun onNotify(logger: BallastLogger, notification: BallastNotification) {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy