MockPlaybackStateRepo

constructor(configuration: MockPlaybackState.Configuration, coroutineContext: CoroutineContext)

Constructor that initializes to a MockPlaybackState.Uninitialized State with a given MockPlaybackState.Configuration

Parameters

configuration

the MockPlaybackState.Configuration to configure the initial state as

coroutineContext

the CoroutineContext the CoroutineContext used to create a coroutine scope for this state machine.


constructor(createInitialState: () -> MockPlaybackState, coroutineContext: CoroutineContext)

Parameters

createInitialState

method for creating an initial MockPlaybackState

coroutineContext

the CoroutineContext the CoroutineContext used to create a coroutine scope for this state machine.