Cannot resolve method registerSticky(this) in place of register(this)
@Override
public void onStart() {
super.onStart();
EventBus.getDefault().register(this);
}
I have tried 'org.greenrobot:eventbus:3.0.0' and 'de.greenrobot:eventbus:3.0.0-beta1' in my Gradle. No idea why this method is not appearing
It's seem registerSticky
are deprecated and removed.
I think, you should register as normal event, then use postSticky
method
@Subscribe(sticky = true, threadMode = ThreadMode.MAIN)
public void onEvent(MessageEvent event) {
//...
}
Please refer: http://greenrobot.org/eventbus/documentation/configuration/sticky-events/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With