Chapter 7. Diving into Extensions: Gadgets API
The complexity of gadgets can vary from lightweight utilities that perform simple tasks to fairly sophisticated applications that integrate with other services and applications (including robots). A participant’s experience with a gadget can vary as well, depending on how the gadget handles changes in state. One gadget may display pretty much the same changes to all participants, while another gadget may display only specific changes to participants, depending on what type of information needs to be communicated.
As we did with robots in the previous chapter, we’ll start out by working through a few examples of code using the Gadgets API. I have designed the gadget examples with the goal of incorporating concepts and API methods that you are likely to use in your own gadgets. We’ll review the Gadgets API in more detail in the second half of the chapter.
Let’s Code a Few Gadgets