23 lines
1.1 KiB
Lua
23 lines
1.1 KiB
Lua
---@meta
|
|
|
|
-- Generated from native/src/runtime/runtime.cpp. Do not edit.
|
|
|
|
-- Runtime layout:
|
|
-- /.lua/apps/<AppId>/main.lua application entry point
|
|
-- /.lua/apps/<AppId>/<Subapp>/main.lua nested route, omitted from the launcher
|
|
-- /.lua/data/<AppId>/ persistent app data, preserved across updates
|
|
-- /.lua/lib/<module>.lua shared require() modules
|
|
-- require() also searches the running application's directory
|
|
--
|
|
-- The firmware does not clear the frame before calling draw(), and commits changed
|
|
-- display content after each callback batch using the panel's own refresh policy.
|
|
-- Timer callbacks are registered directly with timer.after/every.
|
|
|
|
---Required. Runs once before the first draw; failing here stops the app.
|
|
---@param arg? string The string passed to sys.launch or sys.replace.
|
|
function init(arg) end
|
|
|
|
---Optional frame loop, called once after init and then at most 30 FPS, best effort.
|
|
---@param deltaMs integer Monotonic milliseconds since the previous draw; zero on the first.
|
|
function draw(deltaMs) end
|