pub trait Inside: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn show(&self, app: &AppHandle, call: &OpenCall<'_>) -> Result<(), String>;
// Provided methods
fn docs_pages(&self) -> Option<Vec<String>> { ... }
fn plays_video(&self) -> bool { ... }
fn plays_web_video(&self) -> bool { ... }
}Expand description
What shows pages and images inside the application (the viewer of
egui_pop_views::viewer, or the host’s own): the links service hands
it each request the policy sends inside (docs: pages, pages on the
application’s documentation hosts, local images, local videos when it
plays them, YouTube videos when it
plays those), after the policy and the user’s
confirmation.
Required Methods§
Provided Methods§
Sourcefn docs_pages(&self) -> Option<Vec<String>>
fn docs_pages(&self) -> Option<Vec<String>>
The docs: pages it has, when it knows them: the lint checks
the declared docs: links against them.
Sourcefn plays_video(&self) -> bool
fn plays_video(&self) -> bool
Whether it plays local video files: without that they open outside, as any local file.
Sourcefn plays_web_video(&self) -> bool
fn plays_web_video(&self) -> bool
Whether it plays YouTube links (in a web view): without that they open outside, as any web video.