Package 

Class StreamNetworkInfo


  • 
    public final class StreamNetworkInfo
    
                        

    Container for the strongly typed connectivity metadata that Stream surfaces to observers.

    The nested data structures mirror the information exposed by Android's connectivity stack while normalising names and value ranges so they remain stable across API levels.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class StreamNetworkInfo.Snapshot

      Immutable capture of the device's currently selected network at a specific point in time.

      Every field maps back to values provided by android.net.NetworkCapabilities or android.net.LinkProperties. Nullable fields either were not reported by the platform or are hidden due to missing runtime permissions (for example, fine location for Wi-Fi SSID).

      public enum StreamNetworkInfo.Transport

      Enumerates the logical transport mediums that Android associates with a network.

      Values correspond to the TRANSPORT_* constants from android.net.NetworkCapabilities. When the system reports no recognised transports, UNKNOWN is used as a defensive fallback.

      public enum StreamNetworkInfo.PriorityHint

      Expresses the OS-level priority hint for the current network when multiplexing is needed.

      public enum StreamNetworkInfo.Metered

      Billing and quota hint for the connection.

      public final class StreamNetworkInfo.Bandwidth

      Platform-supplied bandwidth estimate in kilobits per second. Values are positive when available; null indicates the estimate is missing or deemed unreliable.

      public final class StreamNetworkInfo.Link

      Link-layer metadata for the network interface backing the connection.

      Includes identifiers and addressing information that can be used for diagnostics or to tailor behaviour (for example, adapting timeouts when behind a known proxy).

      public interface StreamNetworkInfo.Signal

      Normalised radio signal readings for different transport technologies.

      Only the values surfaced by the platform are exposed; absent metrics stay null. Use strengthDbm and level0to4 as generic helpers when the underlying transport is unknown.

    • Constructor Detail

      • StreamNetworkInfo

        StreamNetworkInfo()