19 lines
569 B
Swift
19 lines
569 B
Swift
|
|
import Foundation
|
||
|
|
|
||
|
|
/// The underlying sensing technology powering a connection tier.
|
||
|
|
enum ProximityEngine: String, CaseIterable, Codable {
|
||
|
|
case uwb // Nearby Interaction (U1/U2 chip)
|
||
|
|
case ble // Core Bluetooth
|
||
|
|
case beacon // Core Location (iBeacon region monitoring)
|
||
|
|
case nfc // Core NFC (tap-to-connect)
|
||
|
|
|
||
|
|
var displayName: String {
|
||
|
|
switch self {
|
||
|
|
case .uwb: return "Ultra-Wideband"
|
||
|
|
case .ble: return "Bluetooth"
|
||
|
|
case .beacon: return "Beacon"
|
||
|
|
case .nfc: return "NFC"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|