Top Description Fields Constructors Methods
rx.internal.operators

public Class OperatorDoOnUnsubscribe<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, rx.subscriptions.Subscriptions

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

Field Summary

Modifier and TypeField and Description
private final Action0

Constructor Summary

AccessConstructor and Description
public
OperatorDoOnUnsubscribe(Action0
The action that gets invoked when the modified rx.Observable is unsubscribed
unsubscribe
)

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

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

unsubscribeback to summary
private final Action0 unsubscribe

Constructor Detail

OperatorDoOnUnsubscribeback to summary
public OperatorDoOnUnsubscribe(Action0 unsubscribe)

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

Parameters
unsubscribe:Action0

The action that gets invoked when the modified rx.Observable is unsubscribed

Method Detail

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

Implements rx.functions.Func1.call.

Annotations
@Override