Toast API
app.toast
is the instance of Toast API
, which provide functions to show
native toast.
A working example of Toast API
app.toast.show("Hello Android JS", 1);
Methods
app.toast.show(text, duration)
text
Stringduration
Int0
for short1
for long
An example of above code:
app.toast.show("Hello Android JS", 0);