-
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 UnitonError(String tag, Throwable throwable)Call this method when a throwable is triggered and you want to record it. -
-
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.
-
onError
@Deprecated(message = This fun will be removed in 4.x release as part of Throwable functionality removal., replaceWith = @ReplaceWith(imports = {}, expression = ), level = DeprecationLevel.WARNING) final Unit onError(String tag, Throwable throwable)
Call this method when a throwable is triggered and you want to record it.
- Parameters:
tag- A tag you choosethrowable- The triggered Throwable
-
-
-
-