2APP INVENTOR AND EVENT-DRIVEN PROGRAMMING
App Inventor apps use a model called event-driven programming, where we program behaviors to respond to certain events. An event can be something the user does or something that happens within or to the device.
As App Inventor programmers, we use event handlers called when…do blocks to tell the app how to respond to an event. For each when…do block, we can include one or more commands for the app to follow in sequence once the event occurs. Those commands include blocks to get and set values as well as call blocks to start built-in methods or our own written procedures, which are a series of defined tasks ...
Get Learn to Program with App Inventor now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.