All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bumptech.glide.integration.cronet.DataLogger Maven / Gradle / Ivy

There is a newer version: 5.0.0-rc01
Show newest version
package com.bumptech.glide.integration.cronet;

import androidx.annotation.Nullable;
import org.chromium.net.UrlResponseInfo;

/** A interface for logging data information related to loading the data. */
public interface DataLogger {

  /**
   * Logs the related network information.
   *
   * @param httpUrlRequest HttpUrlRequest that contains information on the request. May be {@code
   *     null} if the request was cancelled.
   * @param startTimeMs Timestamp (ms) that the request started.
   * @param responseStartTimeMs Timestamp (ms) when the first header byte was received.
   * @param endTimeMs Timestamp (ms) that the request ended.
   */
  void logNetworkData(
      @Nullable UrlResponseInfo httpUrlRequest,
      long startTimeMs,
      long responseStartTimeMs,
      long endTimeMs);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy