networkProfile

fun networkProfile(transports: List<String>, validated: Boolean, metered: Boolean, localIps: String, vpn: Boolean): String

Summarizes the active network transports and LAN topology.

Return

Human-readable network profile.

Parameters

transports

Active transport labels (e.g. wifi, cellular).

validated

Whether internet connectivity is validated.

metered

Whether the connection is metered.

localIps

Local IP addresses string.

vpn

Whether a VPN tunnel is active.