Toast (Android only)
Bridge object: AndroidToast
Displays a native Android Toast message.
Methods
AndroidToast.showToast(message, duration)
Parameter | Type | Description |
|---|---|---|
|
| The text to display |
|
|
|
AndroidToast.showShortToast(message)
Shorthand for a short-duration toast.
Parameter | Type | Description |
|---|---|---|
|
| The text to display |
Example
// Short toast
AndroidToast.showShortToast('Saved successfully!');
// Long toast
AndroidToast.showToast('This is a longer message.', 1);
03 May 2026