Skip to main content

ContentResolver

Trait ContentResolver 

Source
pub trait ContentResolver {
    // Required method
    fn resolve(&self, uri: &str) -> Option<ContentHandle>;
}
Expand description

Turns a provider URI into readable content.

Every source that names content by URI rather than handing over bytes — a document intent, a shared item, a dropped file, a media source — resolves through this, so applications never learn what a content://, file:// or blob URI means on the current platform.

Required Methods§

Source

fn resolve(&self, uri: &str) -> Option<ContentHandle>

Resolves uri, or None when this platform cannot open it.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§