@tauri-apps/plugin-dialog - v2.4.2
    Preparing search index...

    Interface DialogFilter

    Extension filters for the file dialog.

    2.0.0

    interface DialogFilter {
        name: string;
        extensions: string[];
    }
    Index

    Properties

    Properties

    name: string

    Filter name.

    extensions: string[]

    Extensions to filter, without a . prefix.

    Note: Mobile platforms have different APIs for filtering that may not support extensions. iOS: Extensions are supported in the document picker, but not in the media picker. Android: Extensions are not supported.

    For these platforms, MIME types are the primary way to filter files, as opposed to extensions. This means the string values here labeled as extensions may also be a MIME type. This property name of extensions is being kept for backwards compatibility, but this may be revisited to specify the difference between extension or MIME type filtering.

    extensions: ['svg', 'png']