getVpnConnectionStatus method

Stream<bool?> getVpnConnectionStatus()

A stream that emits the current VPN connection status.

Emits true if the device's network traffic is currently being routed through a VPN interface (e.g., tun, tap, ipsec), and false otherwise.

Implementation

Stream<bool?> getVpnConnectionStatus() {
  return DeviceSecurityPlatform.instance.getVpnConnectionStatus();
}