foo-webview-sdk
    Preparing search index...

    Interface UiShowToastParams

    Parameters for ui.showToast. Ask the calling window's page to show a toast: nothing is painted natively, the payload is delivered to that window as ui:toast with { message, duration, type, position }.

    interface UiShowToastParams {
        duration?: number;
        message: string;
        position?: string;
        type?: "error" | "info" | "warning" | "success";
    }
    Index
    duration?: number

    Display time in milliseconds.

    3000
    
    message: string

    Toast text.

    position?: string

    Screen corner, passed through to the page.

    "bottom-right"
    
    type?: "error" | "info" | "warning" | "success"

    Toast kind, passed through to the page.

    "info"