Infrastructure low complexity Shared Component mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Wraps the connectivity_plus Flutter package to provide a reactive stream of network availability events. Detects transitions between online and offline states and broadcasts changes to the Offline Manager and any interested subscribers. Handles edge cases such as captive portals and VPN connections.

Feature: Offline Data Support

network-connectivity-monitor

Responsibilities

  • Subscribe to platform network change events via connectivity_plus
  • Emit connectivity state changes as a reactive stream
  • Perform reachability probe to confirm actual internet access beyond captive portals
  • Provide synchronous current connectivity snapshot for immediate checks

Interfaces

initialize(): Future<void>
connectivityStream(): Stream<ConnectivityStatus>
getCurrentStatus(): ConnectivityStatus
isReachable(host: String): Future<bool>
dispose()

Relationships

Dependents (1)

Components that depend on this component