Class ConnectableObservable<T>

    • Method Detail

      • connect

        public abstract void connect(Action1<? super Subscription> connection)
        Instructs the ConnectableObservable to begin emitting the items from its underlying Observable to its Subscribers.
        Parameters:
        connection - the action that receives the connection subscription before the subscription to source happens allowing the caller to synchronously disconnect a synchronous source
      • refCount

        public Observable<T> refCount()
        Returns an Observable that stays connected to this ConnectableObservable as long as there is at least one subscription to this ConnectableObservable.
        Returns:
        a Observable