You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<code>public class MessageEvent { /* Additional fields if needed */ }</code><br/><br/>
24
-
2. Register your subscriber (in your onCreate or in a constructor):<br/>
24
+
2. Prepare subscribers<br/>
25
+
Register your subscriber (in your onCreate or in a constructor):<br/>
25
26
<code>eventBus.register(this);</code><br/><br/>
26
-
3.Declare your subscribing method<br/>
27
+
Declare your subscribing method:<br/>
27
28
<code>@Subscribe</code><br/>
28
29
<code>public void onEvent(AnyEventType event) {/* Do something */};</code><br/><br/>
29
-
4. Post events:<br/>
30
+
3. Post events:<br/>
30
31
<code>eventBus.post(event);</code>
31
32
33
+
This [getting started guide](http://greenrobot.org/eventbus/documentation/how-to-get-started/) shows these 3 steps in more detail.
34
+
32
35
Add EventBus to your project
33
36
----------------------------
34
-
EventBus is available on Maven Central. Please ensure that you are using the latest version by [checking here](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.greenrobot%22%20AND%20a%3A%22eventbus%22)
37
+
Please ensure that you are using the latest version by [checking here](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.greenrobot%22%20AND%20a%3A%22eventbus%22)
0 commit comments