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

commonMain.dev.datlag.kast.Kast.kt Maven / Gradle / Ivy

The newest version!
package dev.datlag.kast

import kotlinx.collections.immutable.ImmutableSet
import kotlinx.coroutines.flow.StateFlow

expect object Kast {

    val isSupported: Boolean
    val connectionState: StateFlow
    val allAvailableDevices: StateFlow>

    @JvmStatic
    fun dispose(): Kast

    @JvmStatic
    fun select(device: Device): Kast

    @JvmStatic
    fun unselect(reason: UnselectReason): Kast

    /**
     * Android specific options mapped for common module.
     */
    object Android {
        @JvmStatic
        fun activeDiscovery()

        @JvmStatic
        fun passiveDiscovery()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy