public interface

CacheWriter.ProgressListener

 androidx.media3.datasource.cache.CacheWriter.ProgressListener

Overview

Receives progress updates during cache operations.

Summary

Methods
public voidonProgress(long requestLength, long bytesCached, long newBytesCached)

Called when progress is made during a cache operation.

Methods

public void onProgress(long requestLength, long bytesCached, long newBytesCached)

Called when progress is made during a cache operation.

Parameters:

requestLength: The length of the content being cached in bytes, or C.LENGTH_UNSET if unknown.
bytesCached: The number of bytes that are cached.
newBytesCached: The number of bytes that have been newly cached since the last progress update.