NetworkUsageRepositoryImpl
internal class NetworkUsageRepositoryImpl(val dao: NetworkUsageDao) : NetworkUsageRepository(source)
Room-backed implementation of network usage counters used by Settings.
Ktor calls publish byte deltas through NetworkUsageCounter, while model downloaders call increment directly. Both paths end up in the same Room table, which keeps the network usage screen observable and durable across process restarts until the user explicitly resets it.
Author
Dmitriy Moroz
Parameters
dao
Room DAO that owns atomic bucket increments and live traffic snapshots.