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