api.ui.notify(spec) pops a toast in the top-right corner. Pass a table; only title is required. Returns a NotifyHandle you can update or dismiss.
Any notifications you push are dismissed automatically when your script unloads.
Creation
| Field | Type | What it does |
|---|---|---|
title | string | Required. Bold heading line. |
subtext | string? | Smaller line under the title. |
icon | string? | Image asset name shown on the left (resolved via getAsset). |
duration | number? | Seconds before it auto-dismisses. Omit to keep it until you dismiss it yourself. |
showProgress | boolean? | Show a progress bar you drive with Update. |
progress | number? | Initial bar fill, 0 to 1 (only meaningful with showProgress). |
timer | boolean? | Self-filling bar: fills 0 → 1 over duration with no manual updates. Implies a progress bar. |
Dismiss
Update
timer bars (those animate themselves).