Files
mobile-ios/RosettaLiveActivityWidget/CallActivityAttributes.swift

16 lines
377 B
Swift

import ActivityKit
import Foundation
struct CallActivityAttributes: ActivityAttributes {
/// Fixed data set when the activity starts.
let peerName: String
let peerPublicKey: String
/// Dynamic state updated during the call.
struct ContentState: Codable, Hashable {
let durationSec: Int
let isActive: Bool
let isMuted: Bool
}
}