-
public final class StreamNetworkInfoContainer 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 classStreamNetworkInfo.SnapshotImmutable 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 enumStreamNetworkInfo.TransportEnumerates 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 enumStreamNetworkInfo.PriorityHintExpresses the OS-level priority hint for the current network when multiplexing is needed.
public enumStreamNetworkInfo.MeteredBilling and quota hint for the connection.
public final classStreamNetworkInfo.BandwidthPlatform-supplied bandwidth estimate in kilobits per second. Values are positive when available;
nullindicates the estimate is missing or deemed unreliable.public final classStreamNetworkInfo.LinkLink-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 interfaceStreamNetworkInfo.SignalNormalised 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 Summary
Constructors Constructor Description StreamNetworkInfo()
-