sys.sys.toast
Declaration
lua
sys.toast(msg [, duration]) | sys.toast(config_table)
Description
Show toast notification. Supports simple string or detailed config table.
Parameters
`msg` (string) — toast message, OR
`config` (table) — {text, duration, position, color, bg, bg_alpha, font_size, corner, border_color, border_width, shadow, x, y}
- position: 'top'/'center'/'bottom' (default)
- color/bg: hex int (0xRRGGBB)
- shadow: bool, x/y overrides position
Return Values
none
Example
lua
sys.toast("Hello!")
sys.toast("Hello!", 3)
sys.toast({text="Custom", position="top", color=0xFF0000, bg=0x000000, bg_alpha=0.8, font_size=18})
Notes
Non-blocking. Requires SpringBoard tweak.