Skip to main content

file_for_id

Function file_for_id 

Source
pub fn file_for_id(id: &str) -> Option<&'static str>
Expand description

Resolve a catalogue sound_id to its bundled file name, or None when the id isn’t in the catalogue. The file name is then resolved against the app’s resource directory by the Tauri command layer.