public class

DataSourceContractTest.FakeTransferListener

extends java.lang.Object

implements TransferListener

 java.lang.Object

↳androidx.media3.test.utils.DataSourceContractTest.FakeTransferListener

Overview

A TransferListener that only keeps track of the transferred bytes.

Summary

Constructors
publicFakeTransferListener()

Methods
public voidonBytesTransferred(DataSource source, DataSpec dataSpec, boolean isNetwork, int bytesTransferred)

public voidonTransferEnd(DataSource source, DataSpec dataSpec, boolean isNetwork)

public voidonTransferInitializing(DataSource source, DataSpec dataSpec, boolean isNetwork)

public voidonTransferStart(DataSource source, DataSpec dataSpec, boolean isNetwork)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public FakeTransferListener()

Methods

public void onTransferInitializing(DataSource source, DataSpec dataSpec, boolean isNetwork)

public void onTransferStart(DataSource source, DataSpec dataSpec, boolean isNetwork)

public void onBytesTransferred(DataSource source, DataSpec dataSpec, boolean isNetwork, int bytesTransferred)

public void onTransferEnd(DataSource source, DataSpec dataSpec, boolean isNetwork)