FakeMediaControlContext
Provides a fake MediaControlContext, and MutableLiveDatas to adjust its contents for a test.
This can be used for tests of MediaControl classes.
The mediaControlContext almost works like a normal context, but no action will be executed when MediaControlContext.actionLauncher is invoked.
Properties
Link copied to clipboard
Test MediaControlContext using the MutableLiveData members of FakeMediaControlContext. Can be passed to systems under test to be able to alter the configuration for MediaControl classes.
Link copied to clipboard
List of Actions exposed by the test media source.
Link copied to clipboard
Active IviMediaItem being played by the active mutableSourceId. Defaults to null
.
Link copied to clipboard
IviPlaybackState of the active mutableSourceId.
Link copied to clipboard
The active SourceId. May be set to null
. Defaults to DEFAULT_SOURCE_ID.