콘텐츠로 이동

DialogFilter

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/plugins/dialog · Kind Interface

import { DialogFilter } from '@netwiv/api/plugins/dialog';

Extension filters for the file dialog.

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.

Example

extensions: ['svg', 'png']
name: string

Filter name.

Upstream since 2.0.0


Descriptions come from the pinned @tauri-apps/plugin-dialog@2.7.3 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.