getStateFlow

abstract fun getStateFlow(vpnFeature: VpnFeature): Flow<VpnStateMonitor.VpnState>

Returns a flow of VPN changes for the given vpnFeature It follows the following truth table:

  • when the VPN is disabled the flow will emit a VpnState.DISABLED

  • else it will return the state of the feature