Top Description Fields Constructors Methods
rx.internal.operators

public Class OperatorDoOnSubscribe<T>

extends Object
implements Observable.Operator<T, T>
Class Inheritance
All Implemented Interfaces
rx.Observable.Operator, rx.functions.Func1, rx.functions.Function
Type Parameters
<T>
The type of the elements in the rx.Observable that this operator modifies
Imports
rx.Observable.Operator, .Subscriber, rx.functions.Action0, rx.observers.Subscribers

This operator modifies an rx.Observable so a given action is invoked when the rx.Observable is subscribed.

Field Summary

Modifier and TypeField and Description
private final Action0

Constructor Summary

AccessConstructor and Description
public
OperatorDoOnSubscribe(Action0
the action that gets invoked when the modified rx.Observable is subscribed
subscribe
)

Constructs an instance of the operator with the callback that gets invoked when the modified Observable is subscribed

Method Summary

Modifier and TypeMethod and Description
public Subscriber<? super T>
call(final Subscriber<? super T> child)

Implements rx.functions.Func1.call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

subscribeback to summary
private final Action0 subscribe

Constructor Detail

OperatorDoOnSubscribeback to summary
public OperatorDoOnSubscribe(Action0 subscribe)

Constructs an instance of the operator with the callback that gets invoked when the modified Observable is subscribed

Parameters
subscribe:Action0

the action that gets invoked when the modified rx.Observable is subscribed

Method Detail

callback to summary
public Subscriber<? super T> call(final Subscriber<? super T> child)

Implements rx.functions.Func1.call.

Annotations
@Override