CallGraph

callpilot · voice, call-lifecycle, state-machine, signaling, kotlin, realtime

Kotlin call state graph managing call lifecycle transitions and signaling events.

// Source: https://github.com/tianye1999/callpilot | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package ai.bondings.callpilot.call

import ai.bondings.callpilot.media.LiveKitSession
import android.content.Context
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob

/** 进程级单例装配:CallManager 存活期跨 Activity 重建,通话不因转屏丢状态。 */
object CallGraph {
    private val sessionScope = CoroutineScope(SupervisorJob() + Dispatchers.Default)

    @Volatile
    private var manager: CallManager? = null

    fun manager(context: Context): CallManager {
        val app = context.applicationContext
        return manager ?: synchronized(

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key