PDF Web SDK Documentation

Comprehensive Guide for Developers: UI & SDK Integration, Configuration, and API Reference

PDF Web SDK
    Preparing search index...

    Interface SnackbarOptions

    interface SnackbarOptions {
        action?: SnackbarAction;
        duration?: number;
        key?: string;
        message: string;
        progress?: number;
        replace?: boolean;
        type: SnackbarType;
    }
    Index

    Properties

    Trailing action button, e.g. a Cancel for the work being reported.

    duration?: number

    Auto-close duration in milliseconds.

    • undefined → uses default duration
    • null or 0 → does not auto-close (stays until user closes)
    key?: string

    Optional key to de-duplicate snackbars. If provided with replace: true, any existing snackbar with the same key will be closed first.

    message: string
    progress?: number

    How far the work has got, 0–100 (clamped). Draws a 24px ring ahead of the message: the value is the length of the ring's arc, and that arc spins for as long as the snackbar is up, so the ring reads as busy while still showing how much is done. Omit for no ring. Pair with duration: null so the snackbar stays up for as long as the work runs.

    replace?: boolean

    When used with key, controls whether to replace an existing keyed snackbar. Default: false (do nothing if a snackbar with the same key is already visible).