--jpToast API jpToast.activate ( sUserToken, sActivationKey ) jpToast.showToast ( sText, kOptDuration, kOptGravity, nOptOffsetX, nOptOffsetY, nOptHorizontalMargin, nOptVerticalMargin ) -- sText is the only required parameter -- kOptDuration must be one of the jpToast duration constants -- kOptGravity must be one of the jpToast gravity constants -- The offset is the one of the toast in the game view, in pixels -- The margin is the one of the game view, in percentage (0 to 100). --Constants --Duration jpToast.kDurationShort jpToast.kDurationLong --Gravity jpToast.kGravityCenter jpToast.kGravityBottom jpToast.kGravityTop jpToast.kGravityLeft jpToast.kGravityRight jpToast.kGravityBottomLeft jpToast.kGravityBottomRight jpToast.kGravityTopLeft jpToast.kGravityTopRight
A toast provides simple feedback about an operation in a small popup.
It only fills the amount of space required for the message and the current activity remains visible and interactive.
Toasts automatically disappear after a timeout.