Skip to main content

Toast

Complete API reference for Toast, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Input

Component: no


public class Toast

Attributes

NameTypeDescription
LENGTH_LONGintRepresents the LENGTH_LONG value stored on this instance. Read or assign to update the property.
LENGTH_SHORTintRepresents the LENGTH_SHORT value stored on this instance. Read or assign to update the property.

Static Methods

SignatureReturnsDescription
showText(String, int)voidShows a toast message on the screen with the given text and duration (use Toast.LENGTH_SHORT or Toast.LENGTH_LONG for length).