Enode — API Reference
    Preparing search index...

    A live toast.

    interface Toast {
        actionLabel?: string;
        durationMs: number;
        id: number;
        message: string;
        onAction?: () => void;
        onSecondaryAction?: () => void;
        secondaryActionLabel?: string;
        tone: ToastTone;
    }
    Index

    Properties

    actionLabel?: string

    Primary action label + handler (e.g. Try again).

    durationMs: number

    ms before auto-dismiss; 0 = sticky.

    id: number
    message: string

    Already-resolved, user-facing text.

    onAction?: () => void
    onSecondaryAction?: () => void
    secondaryActionLabel?: string

    Secondary action label + handler (e.g. Report) — shown alongside the primary.

    tone: ToastTone