MobiWeb Help

Toast (Android only)

Bridge object: AndroidToast

Displays a native Android Toast message.

Methods

AndroidToast.showToast(message, duration)

Parameter

Type

Description

message

string

The text to display

duration

number

0 = short (~2s), 1 = long (~3.5s)

AndroidToast.showShortToast(message)

Shorthand for a short-duration toast.

Parameter

Type

Description

message

string

The text to display

Example

// Short toast AndroidToast.showShortToast('Saved successfully!'); // Long toast AndroidToast.showToast('This is a longer message.', 1);
03 May 2026