StatisticsProvider

StatisticsProvider - interface for Statistics Provider based on SharedFlow.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun clearCollectors()

Unsubscribe and clear all collectors for StatisticsProvider.

Link copied to clipboard
abstract fun collect(id: String, collector: STAT_COLLECTOR_SCOPE)

Add collector for statistics information. It will be activated in prepareStatistics function if it has not been removed from StatisticsProvider.

Link copied to clipboard
abstract suspend fun emit(value: StatisticNote<Any?>)
Link copied to clipboard
abstract fun prepareStatistics()

Preparing statistics - launch active collectors.

Link copied to clipboard
abstract suspend fun removeCollector(id: String)

Unsubscribe and remove collector by id.

Link copied to clipboard
abstract suspend fun stopCollectors(force: Boolean)

Stop all collectors for this StatisticsProvider.