After an Observer calls an Observable's subscribe method, the
Observable calls the Observer's onNext method to provide notifications. A well-behaved
Observable will call an Observer's onCompleted method exactly once or the Observer's
onError method exactly once.
| Modifier and Type | Method and Description |
|---|---|
| public void | onCompleted()
Notifies the Observer that the |
| public void | onError(Throwable
the exception encountered by the Observable e)Notifies the Observer that the |
| public void |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Notifies the Observer that the
The | |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Notifies the Observer that the
If the
| |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Provides the Observer with a new item to observe.
The
The
| |