Progress Bar
`progressBar(data)` → `boolean`
Blocking. Shows a progress bar and waits for it to complete or be cancelled. Returns true on completion, false on cancel.
| Field | Type | Default | Description |
|---|---|---|---|
label |
string |
'' |
Label shown above the bar |
duration |
number |
0 |
Duration in milliseconds |
canCancel |
boolean |
false |
Whether the player can cancel with X |
local completed = exports['amzn_uikit']:progressBar({
label = 'Searching...',
duration = 5000,
canCancel = true,
})`cancelProgress()`
Cancels the active progress bar programmatically.
`progressActive()` → `boolean`
Returns whether a progress bar is currently active.
Previews
GLASS
