I am using GreenRobot EventBus , I wanted to define some Threading properties, according to docs,
However, when I write:
@Subscribe(threadMode = ThreadMode.MAIN)
public void onShowNotification(NotificationEvent event) {
if(event == NotificationEvent.bannerEvent) {
updateContents();
}
}
I get an error that threadMode is not recognized by compiler specifying method: cannot resolve method 'threadMode'
i have on my gradle
file:
implementation 'org.greenrobot:eventbus:3.1.1'