Package 

Object StreamNetworkState.Unavailable


  • 
    public class StreamNetworkState.Unavailable
    extends StreamNetworkState
                        

    Signals that the platform reported a permanent loss of network connectivity.

    This state mirrors the ConnectivityManager.NetworkCallback.onUnavailable callback, which indicates no viable network path exists. Applications should back off from network work and surface an offline UI until a different state is received.

    when (state) {
        StreamNetworkState.Unavailable -> showOfflineBanner("No connection available")
        else -> hideOfflineBanner()
    }