Newbound protocol apps have the ability to generate and respond to events built-in. For example, here is how you would tell the "foo" app to generate a "bar" event in Java:
JSONObject data = new JSONObject();
This is how you would add an event listener to the "foo" app's "bar" event:
Callback cb = new Callback()
public void execute(JSONObject data)
// If you need to eventually stop listening, hold on to cb and when it's time to stop, call:
The Feed Bot app provides a set of commands and a user interface to facilitate customization and persistence of event handling. While you can easily install it with the MetaBot, the Feed Bot is not included as a core app currently, primarily because:
- The commands probably belong in the App Manager app.
- The UI probably belongs in the MetaBot app.
- The current UI is kinda quirky and severely ugly
(So look for updates to the App Manager and MetaBot soon!!!)