Builder

class Builder<T>

Constructs references to lambdas and some basic configuration used to process results of Flow use case.

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): CoroutineScopeOwner.FlowUseCaseConfig<T>
disposePrevious
Link copied to clipboard
fun disposePrevious(disposePrevious: Boolean)
Set whether currently running Job of internal Flow should be canceled when execute is called repeatedly.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onComplete
Link copied to clipboard
fun onComplete(onComplete: () -> Unit)
Set lambda that is called when internal Flow is completed without errors
onError
Link copied to clipboard
fun onError(onError: (Throwable) -> Unit)
Set lambda that is called when some exception on internal Flow occurs
onNext
Link copied to clipboard
fun onNext(onNext: (T) -> Unit)
Set lambda that is called when internal Flow emits new value
onStart
Link copied to clipboard
fun onStart(onStart: () -> Unit)
Set lambda that is called right before internal Job of Flow is launched.
toString
Link copied to clipboard
open fun toString(): String