collect

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.

Create with StatisticsProvider function

Parameters

id

unique ID for collector

collector

collector for SharedFlow based on STAT_COLLECTOR_SCOPE

See also

StatisticsProviderInstance