Implemented the resumed interrupted recordings and allowed processing discards on the RecordingViewModel view model in the Recording package target.
This commit is contained in:
@@ -47,7 +47,9 @@ public extension Capturing {
|
||||
// MARK: - Events
|
||||
|
||||
/// An event emitted by a ``Capturing`` service outside its method calls.
|
||||
public enum CapturingEvent: Sendable {
|
||||
public enum CapturingEvent: Equatable, Sendable {
|
||||
/// The system interrupted the ongoing capture, pausing it.
|
||||
case interrupted
|
||||
/// The system ended the interruption of the capture, hinting whether the capture may resume right away.
|
||||
case interruptionEnded(shouldResume: Bool)
|
||||
}
|
||||
|
||||
@@ -36,6 +36,9 @@ public protocol Preinstalling: Sendable {
|
||||
// MARK: - Events
|
||||
|
||||
/// An event emitted by a ``Preinstalling`` service while preinstalling speech model assets.
|
||||
///
|
||||
/// Every case carries the locale the preinstallation was requested for — not its supported equivalent — so a host can match the
|
||||
/// event against the locale it passed to ``Preinstalling/preinstall(for:)``.
|
||||
public enum PreinstallingEvent: Sendable {
|
||||
/// The download of the locale's speech model assets was cancelled before it finished.
|
||||
case cancelled(Locale)
|
||||
|
||||
Reference in New Issue
Block a user