We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
从loginactivity将消息发给mainactivity的一个fragment中,该如何操作呢。
不好意思,由于rxjava已经升级为2.x,在实际项目中也并不会这样使用,所以我已经放弃了该库的维护,所以也没有再关注过这个库。
关于2.x以后的rxbus 参考 public final class RxBus { private static RxBus instance;
private Subject<Object> bus; public static RxBus getInstance() { if (instance == null) { instance = new RxBus(); } return instance; } private RxBus() { if (bus == null) { synchronized (RxBus.class) { if (bus == null) { bus = PublishSubject.create().toSerialized(); } } } } public void post(Object event) { bus.toSerialized().onNext(event); } public <T> Observable<T> getEvent(Class<T> eventType) { return bus.toSerialized().ofType(eventType); }
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
从loginactivity将消息发给mainactivity的一个fragment中,该如何操作呢。
不好意思,由于rxjava已经升级为2.x,在实际项目中也并不会这样使用,所以我已经放弃了该库的维护,所以也没有再关注过这个库。
关于2.x以后的rxbus 参考
public final class RxBus {
private static RxBus instance;
}
The text was updated successfully, but these errors were encountered: