ObserveNetworkUsageUseCaseImpl

Default implementation that keeps presentation unaware of the persistence mechanism.

Author

Dmitriy Moroz

Parameters

repository

Durable network usage repository observed by the use case.

Constructors

Link copied to clipboard
constructor(repository: NetworkUsageRepository)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun invoke(): Flow<NetworkUsage>

Emits the current traffic counters and every later Room update.