FluentLiveData

Utility functions for LiveData, extending the capabilities of androidx.lifecycle.Transformations

Functions

Link copied to clipboard
@Contract(value = "_, _ -> new")
open fun <I, R> combineLatest(@NonNull other: FluentLiveData<I>, combiner: BiFunction<T, I, R>): FluentLiveData<R>
Link copied to clipboard
Link copied to clipboard
@Contract(value = " -> new")
open fun distinctUntilChanged(): FluentLiveData<T>
Link copied to clipboard
Link copied to clipboard
@Contract(value = "_, _ -> new")
open fun fill(other: LiveData<T>, predicate: Predicate<T>): FluentLiveData<T>
Link copied to clipboard
@Contract(value = "_ -> new")
open fun filter(@NonNull predicate: Predicate<T>): FluentLiveData<T>
Link copied to clipboard
open fun find(predicate: Predicate<T>): FluentLiveData<T>
Link copied to clipboard
Link copied to clipboard
open fun get(): LiveData<T>
Link copied to clipboard
@Contract(value = "_ -> new")
open fun <T> just(value: T): FluentLiveData<T>
Link copied to clipboard
@Contract(value = "_ -> new")
open fun <R> map(@NonNull mapFunction: Function<T, R>): FluentLiveData<R>
Link copied to clipboard
@Contract(value = "_ -> new")
open fun merge(other: LiveData<T>): FluentLiveData<T>
Link copied to clipboard
fun <T> FluentLiveData<T>.observeDisposing(lifecycleOwner: LifecycleOwner, observer: Observer<T>): Disposable
Link copied to clipboard
Link copied to clipboard
@Contract(value = "_ -> new")
open fun <T> of(liveData: LiveData<T>): FluentLiveData<T>
Link copied to clipboard
@Contract(value = "_, _ -> new")
open fun scan(initial: T, operand: BiFunction<T, T, T>): FluentLiveData<T>
Link copied to clipboard
open fun skip(count: Int): FluentLiveData<T>
Link copied to clipboard
@Contract(value = "_ -> new")
open fun skipUntil(other: LiveData<T>): FluentLiveData<T>
Link copied to clipboard
@Contract(value = "_ -> new")
open fun skipWhile(predicate: Predicate<T>): FluentLiveData<T>
Link copied to clipboard
open fun startWith(initialValue: T): FluentLiveData<T>
Link copied to clipboard
@Contract(value = "_ -> new")
open fun <R> switchMap(@NonNull switchMapFunction: Function<T, LiveData<R>>): FluentLiveData<R>
Link copied to clipboard
open fun take(count: Int): FluentLiveData<T>
Link copied to clipboard
@Contract(value = "_ -> new")
open fun takeUntil(other: LiveData<T>): FluentLiveData<T>
Link copied to clipboard
@Contract(value = "_ -> new")
open fun takeWhile(predicate: Predicate<T>): FluentLiveData<T>