T
- The type of the elements in the Observable
that this operator modifiespublic class OperatorDoOnUnsubscribe<T> extends java.lang.Object implements Observable.Operator<T,T>
Observable
so a given action is invoked when the Observable
is unsubscribed.Constructor and Description |
---|
OperatorDoOnUnsubscribe(Action0 unsubscribe)
Constructs an instance of the operator with the callback that gets invoked when the modified Observable is unsubscribed
|
Modifier and Type | Method and Description |
---|---|
Subscriber<? super T> |
call(Subscriber<? super T> child) |
public OperatorDoOnUnsubscribe(Action0 unsubscribe)
unsubscribe
- The action that gets invoked when the modified Observable
is unsubscribedpublic Subscriber<? super T> call(Subscriber<? super T> child)
call
in interface Func1<Subscriber<? super T>,Subscriber<? super T>>