-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Creating Observables
David Karnok edited this page Sep 28, 2016
·
91 revisions
This page shows methods that create Observables.
-
just( )
— convert an object or several objects into an Observable that emits that object or those objects -
from( )
— convert an Iterable, a Future, or an Array into an Observable -
repeat( )
— create an Observable that emits a particular item or sequence of items repeatedly -
repeatWhen( )
— create an Observable that emits a particular item or sequence of items repeatedly, depending on the emissions of a second Observable -
create( )
— advanced use only! create an Observable from scratch by means of a function, considerfromAsync
instead -
fromEmitter()
— create safe, backpressure-enabled, unsubscription-supporting Observable via a function and push events. -
defer( )
— do not create the Observable until a Subscriber subscribes; create a fresh Observable on each subscription -
range( )
— create an Observable that emits a range of sequential integers -
interval( )
— create an Observable that emits a sequence of integers spaced by a given time interval -
timer( )
— create an Observable that emits a single item after a given delay -
empty( )
— create an Observable that emits nothing and then completes -
error( )
— create an Observable that emits nothing and then signals an error -
never( )
— create an Observable that emits nothing at all
Copyright (c) 2016-present, RxJava Contributors.
Twitter @RxJava | Gitter @RxJava