Back to Exoplayer

FakeDataSource.Factory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/testutil/FakeDataSource.Factory.html

latest3.0 KB
Original Source

Package com.google.android.exoplayer2.testutil

Class FakeDataSource.Factory

  • java.lang.Object

    • com.google.android.exoplayer2.testutil.FakeDataSource.Factory
  • All Implemented Interfaces:DataSource.FactoryEnclosing class:FakeDataSource


public static classFakeDataSource.Factoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[DataSource.Factory](../upstream/DataSource.Factory.html "interface in com.google.android.exoplayer2.upstream")

Factory to create a FakeDataSource.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | protected FakeDataSet | fakeDataSet | | | protected boolean | isNetwork | |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | Factory() | |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | FakeDataSource | createDataSource() | Creates a DataSource instance. | | FakeDataSource.Factory | setFakeDataSet​(FakeDataSet fakeDataSet) | | | FakeDataSource.Factory | setIsNetwork​(boolean isNetwork) | |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

fakeDataSet

protected[FakeDataSet](FakeDataSet.html "class in com.google.android.exoplayer2.testutil")fakeDataSet
- 

isNetwork

protected boolean isNetwork

Constructor Detail

- 

Factory

public Factory()

Method Detail

- 

setFakeDataSet

@CanIgnoreReturnValue
public final[FakeDataSource.Factory](FakeDataSource.Factory.html "class in com.google.android.exoplayer2.testutil")setFakeDataSet​([FakeDataSet](FakeDataSet.html "class in com.google.android.exoplayer2.testutil")fakeDataSet)
- 

setIsNetwork

@CanIgnoreReturnValue
public final[FakeDataSource.Factory](FakeDataSource.Factory.html "class in com.google.android.exoplayer2.testutil")setIsNetwork​(boolean isNetwork)
- 

createDataSource

public[FakeDataSource](FakeDataSource.html "class in com.google.android.exoplayer2.testutil")createDataSource()

Description copied from interface: DataSource.Factory

Creates a DataSource instance. Specified by:createDataSource in interface DataSource.Factory