Event handlers include two types, namely Block Event Handler (Live Mode Configuration) and Extension Event Handler (Common Code Configuration).
- block handler: Block event handler, including block adding, removing, and executing, indicated by block.*.
- extension handler: Extension event handler, including extension loading, connecting, and state switching, indicated by extension.*.
All APIs of the mBlock extension builder are obtained from the app, device, and block objects. You can also use any web APIs except DOM. For details, see the related reference documents.
app (application): Obtains and operates the blocks and data of the mBlock app.
device: Connects to the system of the current device, and reads and writes data.
block: Obtains the running information of blocks.
For more APIs, see API List.