public interface

CompletableObserver

io.reactivex.CompletableObserver
Known Indirect Subclasses

Class Overview

Represents the subscription API callbacks when subscribing to a Completable instance.

Summary

Public Methods
abstract void onComplete()
Called once the deferred computation completes normally.
abstract void onError(Throwable e)
Called once if the deferred computation 'throws' an exception.
abstract void onSubscribe(Disposable d)
Called once by the Completable to set a Disposable on this instance which then can be used to cancel the subscription at any time.

Public Methods

public abstract void onComplete ()

Called once the deferred computation completes normally.

public abstract void onError (Throwable e)

Called once if the deferred computation 'throws' an exception.

Parameters
e the exception, not null.

public abstract void onSubscribe (Disposable d)

Called once by the Completable to set a Disposable on this instance which then can be used to cancel the subscription at any time.

Parameters
d the Disposable instance to call dispose on for cancellation, not null