Connectivity Monitor Service
Component Detail
Service Layer
low complexity
Shared Component
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Monitors device network connectivity state using the connectivity_plus Flutter package and emits a stream of connectivity change events. Triggers an immediate sync when the device transitions from offline to online, ensuring queued writes are delivered promptly without waiting for the next scheduled background task window.
connectivity-monitor-service
Responsibilities
- Monitor network connectivity using the connectivity_plus package
- Emit a reactive stream of ConnectivityStatus events to subscribers
- Trigger an immediate sync on transition from offline to online state
Interfaces
observeConnectivity(): Stream<ConnectivityStatus>
isOnline(): bool
getCurrentStatus(): ConnectivityStatus