[Android 知识点] RxAndroid的使用(七)(待更新)

来源:互联网 发布:直线插补算法 编辑:程序博客网 时间:2024/06/05 03:53

Connectable Observable Operators 连接操作

  • Connect — instruct a connectable Observable to begin emitting items to its subscribers
  • Publish — convert an ordinary Observable into a connectable Observable
  • RefCount — make a Connectable Observable behave like an ordinary Observable
  • Replay — ensure that all observers see the same sequence of emitted items, even if they subscribe after the Observable has begun emitting items

Operators to Convert Observables 转换操作

  • To — convert an Observable into another object or data structure

取消订阅

调用unsubscribe()方法,我们创建的Observer就不再会收到数据了

参考资料

  • http://android.jobbole.com/85251/?utm_source=blog.jobbole.com&utm_medium=relatedPosts
0 0