property_get/
property_get.rs

1use android_properties::AndroidProperty;
2
3const HELLO_WORLD_PROPERTY: &str = "hello.world";
4
5fn main() {
6    let mut hello_world = AndroidProperty::new(HELLO_WORLD_PROPERTY);
7    match hello_world.value() {
8        Some(_value) => println!("{}", hello_world),
9        None => println!("Property {} not found", hello_world.name()),
10    };
11}