Interface ToastSink


public interface ToastSink
Sink for the user-facing toast notifications raised during login flows. The host maps ToastSink.Level onto its own notification styling.
Since:
0.1.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Severity of a toast, mapped by the host onto its own styles.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    toast(ToastSink.Level level, String title, String description, int durationMs)
    Publishes a toast.
  • Method Details

    • toast

      void toast(ToastSink.Level level, String title, String description, int durationMs)
      Publishes a toast.
      Parameters:
      level - the severity
      title - the heading
      description - the body text
      durationMs - how long to show it, in milliseconds
      Since:
      0.1.0