Package 

Class ChuckerCollector


  • 
    public final 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

    • Constructor Detail

      • ChuckerCollector

        ChuckerCollector(Context context, Boolean showNotification, RetentionManager.Period retentionPeriod)
        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.
      • ChuckerCollector

        ChuckerCollector(Context context, Boolean showNotification)
        Parameters:
        context - An Android Context
        showNotification - Control whether a notification is shown while HTTP activity is recorded.
      • ChuckerCollector

        ChuckerCollector(Context context)
        Parameters:
        context - An Android Context
    • Method Detail

      • 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 context
        startTimestamp - The timestamp to read transactions from.
        exportFormat - The export format: LOG or HAR