docs/doc/reference/com/google/android/exoplayer2/testutil/FakeDataSource.Factory.html
Package com.google.android.exoplayer2.testutil
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.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| protected FakeDataSet | fakeDataSet | |
| protected boolean | isNetwork | |
Constructors | Constructor | Description |
| --- | --- |
| Factory() | |
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) | |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
protected[FakeDataSet](FakeDataSet.html "class in com.google.android.exoplayer2.testutil")fakeDataSet
-
protected boolean isNetwork
-
public Factory()
-
@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)
-
@CanIgnoreReturnValue
public final[FakeDataSource.Factory](FakeDataSource.Factory.html "class in com.google.android.exoplayer2.testutil")setIsNetwork(boolean isNetwork)
-
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