FakeSourceInfo

@IviExperimental(reasons = [])
class FakeSourceInfo(context: Context, sourceId: SourceId)

Provides a fake SourceInfo, and MutableLiveDatas to adjust its contents for a test.

This can be used for all sorts of tests which involve SourceInfo.

Constructors

Link copied to clipboard
fun FakeSourceInfo(context: Context, sourceId: SourceId)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val defaultSourceInfo: SourceInfo

Default media source.

Link copied to clipboard
val mutableActiveSource: MutableLiveData<SourceInfo>

MutableLiveData containing a media source. Can be passed to systems under test to be able to alter the source information. Defaults to defaultSourceInfo.