viewtify

viewtify.ui.toast

Toast<T>

  • T
  • Functionkiss.SignalT, kiss.SignalT
  • kiss.Narrowkiss.WiseSupplierkiss.SignalT, kiss.SignalT, kiss.WiseSupplierkiss.SignalT, kiss.SignalT
  • kiss.Wise
  • kiss.WiseFunctionkiss.SignalT, kiss.SignalT

Represents a Toast notification utility class that provides methods to show various types of notifications. Notifications are displayed as transient messages to the user.

settingToastSetting

show(Objectmessage, kiss.WiseRunnableactions)void

Objectmessage

The message to be displayed in the notification.

kiss.WiseRunnableactions

Optional actions (WiseRunnable) to be performed when the notification is interacted with.

Shows a Toast notification with the specified message and optional actions.

show(Stringmessage, kiss.WiseRunnableactions)void

Stringmessage

The message to be displayed in the notification.

kiss.WiseRunnableactions

Optional actions (WiseRunnable) to be performed when the notification is interacted with.

Shows a Toast notification with the specified message and optional actions.

show(kiss.VariableStringmessage, kiss.WiseRunnableactions)void

kiss.VariableStringmessage

The dynamic message variable to be displayed in the notification.

kiss.WiseRunnableactions

Optional actions (WiseRunnable) to be performed when the notification is interacted with.

Shows a Toast notification with the specified dynamic message variable and optional actions.

title(Stringtitle)ToastT

T
Stringtitle
ToastT

Create Toast with the specified title.

title(kiss.VariableStringtitle)ToastT

T
kiss.VariableStringtitle
ToastT

Create Toast with the specified title.

message(Stringmessage)ToastT

Stringmessage
ToastT

Set message.

totalProgress(intsize)ToastT

intsize
ToastT

Set total progress.

incrementProgress()void

Increment progress.

decrementProgress()void

Increment progress.

setProgress(intprogress)void

intprogress

Set progress

resetProgress()void

Reset progress.

completeProgress()void

Complete progress

whenProgressed(kiss.WiseBiConsumerToastT, Taction)ToastT

kiss.WiseBiConsumerToastT, Taction
ToastT

Register progress action.

whenCanceled(kiss.WiseRunnableaction)ToastT

kiss.WiseRunnableaction
ToastT

Register cancel action.

whenCompleted(kiss.WiseRunnableaction)ToastT

kiss.WiseRunnableaction
ToastT

Register complete action.

show(kiss.SignalTsignal)void

kiss.SignalTsignal

Shows a Toast notification for the specified data stream.

APPLY(kiss.SignalTtask)kiss.SignalT

kiss.SignalTtask
kiss.SignalT
Throwable