Interface IsDefaultToastOptions
-
- All Known Implementing Classes:
DefaultToastOptions,ToastItemOptions,ToastOptions
public interface IsDefaultToastOptionsDefines the toast options container, and the static defaults.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IsDefaultActiongetAction()Returns the actions of the toast.default AligngetAlign()Returns the alignment of the toast actions.default intgetBorderRadius()Returns the border radius (in pixels) of toast container.default ImggetIcon()Returns the icon image set for toast.IsDefaultContentElementgetLabel()Returns the label of the toast.default ModifierKeygetModifierKey()Returns the modifier key to close the toast by clicking on it.default intgetProgressBarHeight()Returns the height (in pixels) of the toast progress bar.default IsProgressBarTypegetProgressBarType()Returns the type of the toast progress bar.default StringgetText()Returns the text of the toast.default intgetTimeout()Returns how long the toast notification should last.IsDefaultContentElementgetTitle()Returns the title of the toast.default IsToastTypegetType()Returns the type of the toast.default booleanisAutoHide()Returns whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked.default booleanisHideProgressBar()Returnstruewhether to hide the progress bar.default booleanisHideShadow()Returnstruewhether to hide the shadow of toast.
-
-
-
Method Detail
-
getTitle
IsDefaultContentElement getTitle()
Returns the title of the toast.- Returns:
- the title of the toast
-
getLabel
IsDefaultContentElement getLabel()
Returns the label of the toast.- Returns:
- the label of the toast
-
getAction
IsDefaultAction getAction()
Returns the actions of the toast.- Returns:
- the actions of the toast
-
getAlign
default Align getAlign()
Returns the alignment of the toast actions.- Returns:
- the alignment of the toast actions
-
getText
default String getText()
Returns the text of the toast.- Returns:
- the text of the toast
-
getType
default IsToastType getType()
Returns the type of the toast.- Returns:
- the type of the toast
-
getProgressBarType
default IsProgressBarType getProgressBarType()
Returns the type of the toast progress bar.- Returns:
- the type of the toast progress bar
-
getProgressBarHeight
default int getProgressBarHeight()
Returns the height (in pixels) of the toast progress bar.- Returns:
- the height (in pixels) of the toast progress bar
-
isHideProgressBar
default boolean isHideProgressBar()
Returnstruewhether to hide the progress bar.- Returns:
truewhether to hide the progress bar
-
isHideShadow
default boolean isHideShadow()
Returnstruewhether to hide the shadow of toast.- Returns:
truewhether to hide the shadow of toast
-
isAutoHide
default boolean isAutoHide()
Returns whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked.- Returns:
- whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked
-
getTimeout
default int getTimeout()
Returns how long the toast notification should last.- Returns:
- how long the toast notification should last
-
getBorderRadius
default int getBorderRadius()
Returns the border radius (in pixels) of toast container.- Returns:
- the border radius (in pixels) of toast container
-
getIcon
default Img getIcon()
Returns the icon image set for toast.- Returns:
- the icon image set for toast
-
getModifierKey
default ModifierKey getModifierKey()
Returns the modifier key to close the toast by clicking on it.- Returns:
- the modifier key to close the toast by clicking on it
-
-