Added the "reset()" method to the Reporting protocol in the Recording feature target to discard leftover Live Activities at launch and set a stale date on recording activities.
This commit is contained in:
@@ -33,4 +33,9 @@ public protocol Reporting: Sendable {
|
||||
/// Reports the end of the recording flow.
|
||||
func ended() async
|
||||
|
||||
/// Discards any reporting surface left over from an earlier run of the app — a Live Activity the app was killed before it could
|
||||
/// end, for example — so an abandoned surface never outlives the process that created it. Meant to be called once at launch,
|
||||
/// before any recording starts.
|
||||
func reset() async
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user