public final class

FileDataSource.Factory

extends java.lang.Object

implements DataSource.Factory

 java.lang.Object

↳androidx.media3.datasource.FileDataSource.Factory

Overview

DataSource.Factory for FileDataSource instances.

Summary

Constructors
publicFactory()

Methods
public FileDataSourcecreateDataSource()

public FileDataSource.FactorysetListener(TransferListener listener)

Sets a TransferListener for FileDataSource instances created by this factory.

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

Constructors

public Factory()

Methods

public FileDataSource.Factory setListener(TransferListener listener)

Sets a TransferListener for FileDataSource instances created by this factory.

Parameters:

listener: The TransferListener.

Returns:

This factory.

public FileDataSource createDataSource()