-
public final class ChuckerCollectorThe 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
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanshowNotification
-
Constructor Summary
Constructors Constructor Description ChuckerCollector(Context context, Boolean showNotification, RetentionManager.Period retentionPeriod)ChuckerCollector(Context context, Boolean showNotification)ChuckerCollector(Context context)
-
Method Summary
Modifier and Type Method Description final BooleangetShowNotification()final UnitsetShowNotification(Boolean showNotification)final UriwriteTransactions(Context context, Long startTimestamp, ExportFormat exportFormat)Export the Chucker transactions to a file. -
-
Constructor Detail
-
ChuckerCollector
ChuckerCollector(Context context, Boolean showNotification, RetentionManager.Period retentionPeriod)
- Parameters:
context- An Android ContextshowNotification- Control whether a notification is shown while HTTP activity is recorded.retentionPeriod- Set the retention period for HTTP transaction data captured by this collector.
-
ChuckerCollector
ChuckerCollector(Context context, Boolean showNotification)
- Parameters:
context- An Android ContextshowNotification- Control whether a notification is shown while HTTP activity is recorded.
-
ChuckerCollector
ChuckerCollector(Context context)
- Parameters:
context- An Android Context
-
-
Method Detail
-
getShowNotification
final Boolean getShowNotification()
-
setShowNotification
final Unit setShowNotification(Boolean showNotification)
- Parameters:
showNotification- Control whether a notification is shown while HTTP activity is recorded.
-
writeTransactions
final Uri writeTransactions(Context context, Long startTimestamp, ExportFormat exportFormat)
Export the Chucker transactions to a file. Please note that this function is blocking and performs Disk I/O. Make sure you run it on a separate thread or coroutine.
- Parameters:
context- Application contextstartTimestamp- The timestamp to read transactions from.exportFormat- The export format: LOG or HAR
-
-
-
-