|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - public interface Observer<T>
Provides a mechanism for receiving push-based notifications.
After an Observer calls an Observable's Observable.subscribe method, the Observable calls the Observer's onNext method to provide notifications. A
well-behaved Observable will
call an Observer's onCompleted closure exactly once or the Observer's onError closure exactly once.
For more information see the RxJava Wiki
| Method Summary | |
|---|---|
void |
onCompleted()
Notifies the Observer that the Observable has finished sending push-based notifications. |
void |
onError(java.lang.Throwable e)
Notifies the Observer that the Observable has experienced an error condition. |
void |
onNext(T args)
Provides the Observer with new data. |
| Method Detail |
|---|
void onCompleted()
Observable has finished sending push-based notifications.
The Observable will not call this closure if it calls onError.
void onError(java.lang.Throwable e)
Observable has experienced an error condition.
If the Observable calls this closure, it will not thereafter call onNext or onCompleted.
e - void onNext(T args)
The Observable calls this closure 1 or more times, unless it calls onError in which case this closure may never be called.
The Observable will not call this closure again after it calls either onCompleted or onError.
args -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||