Skip to main content

tauri_plugin_android_fs/api/models/
file_picker.rs

1/// Filters for VisualMediaPicker.
2#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
3#[non_exhaustive]
4pub enum VisualMediaTarget<'a> {
5
6    /// Allow only images to be selected.  
7    ImageOnly,
8
9    /// Allow only videos to be selected.  
10    VideoOnly,
11
12    /// Allow only images and videos to be selected.  
13    ImageAndVideo,
14
15    /// Allow only images or videos of specified single Mime type to be selected.  
16    ImageOrVideo {
17        mime_type: &'a str
18    }
19}