use super::*;
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct LiveActivityContent {
pub(crate) title: String,
pub(crate) subtitle: String,
#[new(skip)]
pub(crate) compact_leading: String,
#[new(skip)]
pub(crate) compact_trailing: String,
#[new(skip)]
pub(crate) minimal_badge: String,
#[new(skip)]
#[get(skip)]
pub(crate) progress_percent: Option<u8>,
#[new(skip)]
#[get(type(copy))]
pub(crate) accent_hex: u32,
}
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct LiveActivityHandle {
pub(crate) activity_id: String,
#[get(type(copy))]
pub(crate) platform: PlatformKind,
#[get(type(copy))]
pub(crate) presentation: IslandPresentationMode,
pub(crate) content: LiveActivityContent,
#[get(type(copy))]
pub(crate) active: bool,
}
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct SystemNotification {
pub(crate) id: String,
pub(crate) title: String,
pub(crate) body: String,
#[new(skip)]
#[get(skip)]
pub(crate) badge_count: Option<u32>,
#[new(skip)]
#[get(type(copy))]
pub(crate) silent: bool,
}
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct SystemTrayConfig {
pub(crate) tooltip: String,
#[new(skip)]
pub(crate) title: String,
#[new(skip)]
pub(crate) menu_items: Vec<String>,
}
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct SharePayload {
pub(crate) title: String,
pub(crate) text: String,
#[new(skip)]
pub(crate) url: String,
}
#[derive(Clone, Data, Debug, Default, New)]
pub struct PlatformServiceHub {
#[get(type(copy))]
pub(crate) platform: PlatformKind,
#[new(skip)]
pub(crate) permissions: PermissionManager,
#[new(skip)]
pub(crate) protocols: ProtocolRegistry,
#[new(skip)]
pub(crate) live_activities: Vec<LiveActivityHandle>,
#[new(skip)]
pub(crate) notifications: Vec<SystemNotification>,
#[new(skip)]
pub(crate) announcements: Vec<A11yAnnouncement>,
#[new(skip)]
#[get(skip)]
pub(crate) tray: Option<SystemTrayConfig>,
#[new(skip)]
#[get(type(copy))]
pub(crate) haptic_count: u64,
}