Skip to main content

euv_core/system/capabilities/
enum.rs

1/// Active presentation surface for iOS Dynamic Island / Live Activities and cross-platform fallbacks.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
3pub enum IslandPresentationMode {
4    /// iOS Dynamic Island compact pill (leading + trailing views).
5    Compact,
6    /// iOS Dynamic Island minimal circular badge when multiple live activities compete.
7    Minimal,
8    /// iOS Dynamic Island expanded full-width card on long press.
9    Expanded,
10    /// iOS / iPadOS Lock Screen Live Activity banner.
11    LockScreen,
12    /// Android Live Updates / Ongoing Notification or desktop toast fallback.
13    FallbackNotification,
14    /// macOS Menu Bar, Windows Taskbar badge, Linux StatusNotifier, or Web title pill fallback.
15    #[default]
16    FallbackStatusBar,
17}
18
19/// Tactile haptic feedback waveform normalized across iOS, iPadOS, Android, macOS, and Web.
20#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
21pub enum HapticStyle {
22    /// Light subtle tap (`UIImpactFeedbackGenerator.light`).
23    #[default]
24    Light,
25    /// Standard medium impact (`UIImpactFeedbackGenerator.medium`).
26    Medium,
27    /// Strong heavy impact (`UIImpactFeedbackGenerator.heavy`).
28    Heavy,
29    /// Crisp selection tick (`UISelectionFeedbackGenerator`).
30    Selection,
31    /// Positive completion confirmation (`UINotificationFeedbackGenerator.success`).
32    Success,
33    /// Cautionary warning pulse.
34    Warning,
35    /// Error double-pulse feedback.
36    Error,
37}
38
39/// Hardware biometric authentication provider exposed by the active platform.
40#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
41pub enum BiometricKind {
42    /// No biometric hardware available.
43    #[default]
44    None,
45    /// Apple Face ID (iPhone / iPad Pro).
46    FaceId,
47    /// Apple Touch ID (Mac / iPad).
48    TouchId,
49    /// Android `BiometricPrompt` fingerprint / face class.
50    Fingerprint,
51    /// Windows Hello (`UserConsentVerifier`).
52    WindowsHello,
53    /// WebAuthn / FIDO2 Passkey authenticator.
54    Passkey,
55}