API ReferenceEnvironment
SensitiveContent
Window-sharing and recording obscure policy for subtrees.
SensitiveContent marks a subtree for the capture-protection policy;
SensitiveContentHost resolves priority (Sensitive > AutoSensitive >
NotSensitive) snapshotted at the window boundary.
use incular::prelude::*;
fn main() {
let sensitive = SensitiveContent::new(Text::new("Secret"));
println!("sensitivity: {:?}", sensitive.sensitivity());
let relaxed = SensitiveContent::with_sensitivity(
ContentSensitivity::NotSensitive,
Text::new("Public"),
)
.sensitive(false);
println!("relaxed: {:?}", relaxed.sensitivity());
let app = Application::new(|_cx| {
SensitiveContent::new(Text::new("Secret")).into()
})
.expect("valid application");
incular::run(app).expect("run application");
}SensitiveContentHost: new() / with_fallback(s) / register(s) /
unregister(s) / calculated_content_sensitivity() /
effective_content_sensitivity() / has_widgets() / count(s).
Related: WindowHandle.