library / com.chuckerteam.chucker.api / ChuckerCollector

ChuckerCollector

class ChuckerCollector

The collector responsible of collecting data from a ChuckerInterceptor and storing it/displaying push notification. You need to instantiate one of those and provide it to

Parameters

context - An Android Context

showNotification - Control whether a notification is shown while HTTP activity is recorded.

retentionPeriod - Set the retention period for HTTP transaction data captured by this collector. The default is one week.

Constructors

<init>

The collector responsible of collecting data from a ChuckerInterceptor and storing it/displaying push notification. You need to instantiate one of those and provide it to

ChuckerCollector(context: Context, showNotification: Boolean = true, retentionPeriod: Period = RetentionManager.Period.ONE_WEEK)

Properties

showNotification

Control whether a notification is shown while HTTP activity is recorded.

var showNotification: Boolean

Functions

onError

Call this method when a throwable is triggered and you want to record it.

fun onError(tag: String, throwable: Throwable): Unit