cloudkit 0.2.0

Safe Rust bindings for Apple's CloudKit framework — iCloud databases and sync on macOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use cloudkit::prelude::*;

fn main() {
    let info = CKNotificationInfo::new()
        .with_alert_body("A record changed")
        .with_title("CloudKit")
        .with_subtitle("Builder smoke")
        .with_sound_name("ding.aiff")
        .with_should_badge(true)
        .with_mutable_content(true)
        .with_category("cloudkit-demo")
        .with_collapse_id_key("collapseID");

    println!("title={:?} subtitle={:?} mutable={}", info.title(), info.subtitle(), info.should_send_mutable_content());
    println!("✅ notification-info area OK");
}