Package com.castlabs.sdk.debug.metric

# Class ChunkDownloadTimeMetric

java.lang.Object
com.castlabs.sdk.debug.metric.Metric
com.castlabs.sdk.debug.metric.ChunkDownloadTimeMetric

public class ChunkDownloadTimeMetric extends Metric
Provides a Metric for the chunk download time.

Since:
  4.2.0

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class com.castlabs.sdk.debug.metric.Metric

  `Metric.Plotter`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `MODE_AUDIO`
  Mode to display audio chunk download times.
  `static final int`
  `MODE_VIDEO`
  Mode to display video chunk download times.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChunkDownloadTimeMetric(int color, com.github.mikephil.charting.components.YAxis.AxisDependency axisDependency, int mode)`
  Creates a new ChunkDownloadTimeMetric

- ## Method Summary

  ### Methods inherited from class com.castlabs.sdk.debug.metric.Metric

  `attach, detach, getDataSet`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### MODE_VIDEO

    public static final int MODE_VIDEO
    Mode to display video chunk download times.
    See Also:
      - Constant Field Values

  - ### MODE_AUDIO

    public static final int MODE_AUDIO
    Mode to display audio chunk download times.
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### ChunkDownloadTimeMetric

    public ChunkDownloadTimeMetric(int color, com.github.mikephil.charting.components.YAxis.AxisDependency axisDependency, int mode)
    Creates a new ChunkDownloadTimeMetric
    Parameters:
      `color` - color that this Metric should be drawn in
      `axisDependency` - to which vertical axis bind the data from this Metric
      `mode` - whether to get the Metric for `MODE_AUDIO` or `MODE_VIDEO`