class TestLifecycleScopeProvider : LifecycleScopeProvider<TestLifecycle>
Test utility to create LifecycleScopeProvider instances for tests.
Supports a start and stop lifecycle. Subscribing when outside of the lifecycle will throw either a LifecycleNotStartedException or LifecycleEndedException.
class TestLifecycle |
fun correspondingEvents(): CorrespondingEventsFunction<TestLifecycle> |
|
static fun create(): TestLifecycleScopeProvider |
|
static fun createInitial(initialValue: TestLifecycle): TestLifecycleScopeProvider |
|
fun lifecycle(): Observable<TestLifecycle> |
|
fun peekLifecycle(): TestLifecycle? |
|
fun requestScope(): CompletableSource |
|
fun start(): Unit
Start the test lifecycle. |
|
fun stop(): Unit
Stop the test lifecycle. |