public final class RxEventSources
extends java.lang.Object
Observables and EventSources.| Modifier and Type | Method and Description |
|---|---|
static <E> com.spotify.mobius.EventSource<E> |
fromObservables(rx.Observable<E>... observables)
Create an event source from the given RxJava streams.
|
static <E> rx.Observable<E> |
toObservable(com.spotify.mobius.EventSource<E> eventSource,
rx.Emitter.BackpressureMode backpressureMode)
Create an observable from the given event source.
|
@SafeVarargs public static <E> com.spotify.mobius.EventSource<E> fromObservables(rx.Observable<E>... observables)
All streams must be mapped to your event type.
E - the event typeobservables - the observables you want to include in this event sourcepublic static <E> rx.Observable<E> toObservable(com.spotify.mobius.EventSource<E> eventSource,
rx.Emitter.BackpressureMode backpressureMode)
E - the event typeeventSource - the eventSource you want to convert to an observable