Members
(static, constant) TOAST_ACTION_SAFE_MARGIN
5% action safe zone: 1920 * 0.05 = 96px from each edge
- Default Value
- 96
(static, constant) TOAST_BOTTOM_EDGE
1920 - TOAST_ACTION_SAFE_MARGIN
- Default Value
- 984
(static, constant) TOAST_ICON_GAP
- Default Value
- 12
(static, constant) TOAST_ICON_SIZE
- Default Value
- 32
(static, constant) TOAST_MAX_WIDTH
- Default Value
- 800
(static, constant) TOAST_PADDING
Layout constants — padding synced to TextButton (30px)
- Default Value
- 30
(static, constant) TOAST_RIGHT_EDGE
1920 - TOAST_ACTION_SAFE_MARGIN
- Default Value
- 1824
Methods
(static) init() → {void}
Returns:
- Type:
- void
(static) onDismissTimer() → {void}
Returns:
- Type:
- void
(static) onFadeOutComplete() → {void}
Returns:
- Type:
- void
(static) onRenderComplete() → {void}
Called when the component has rendered and we can measure the label accurately
Returns:
- Type:
- void
(static) onShouldShow() → {void}
Returns:
- Type:
- void
(static) sizeAndPosition() → {void}
Measure text, size the toast, and anchor right edge to action safe zone
Returns:
- Type:
- void