FileDataSource.Factory


class FileDataSource.Factory : DataSource.Factory


DataSource.Factory for FileDataSource instances.

Summary

Public constructors

Public functions

FileDataSource!

Creates a DataSource instance.

FileDataSource.Factory!

Sets a TransferListener for FileDataSource instances created by this factory.

Public constructors

Factory

Factory()

Public functions

createDataSource

fun createDataSource(): FileDataSource!

Creates a DataSource instance.

setListener

@CanIgnoreReturnValue
fun setListener(listener: TransferListener?): FileDataSource.Factory!

Sets a TransferListener for FileDataSource instances created by this factory.

Parameters
listener: TransferListener?

The TransferListener.

Returns
FileDataSource.Factory!

This factory.