SwiftclassNotesEditor

@Observable class NotesEditor.RecordingViewModel

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 85

  1. deinitdeinit
  2. fieldlet _$observationRegistrar: Observation.ObservationRegistrar
  3. fieldvar _accessibilityScrubMode: NotesEditor.RecordingViewModel.AccessibilityScrubMode?
  4. fieldvar _bottomBarRegionBottomInset: CoreGraphics.CGFloat?
  5. fieldvar _canBePlayedBack: Bool
  6. fieldvar _currentTitleString: String
  7. fieldvar _isCallRecording: Bool
  8. fieldvar _isPlaying: Bool
  9. fieldvar _lastKnownAssetDuration: Double?
  10. fieldvar _lastPlaybackTime: Double
  11. fieldvar _microphoneState: NotesEditor.RecordingViewModel.MicrophoneState
  12. fieldvar _needsSeekToTime: Bool
  13. fieldvar _observers: Set<Combine.AnyCancellable>
  14. fieldvar _playbackTime: Double
  15. fieldvar _recordingDurationWhenResumed: Double
  16. fieldvar _recordingManager: NotesUI.AudioRecordingManager
  17. fieldvar _recordingState: NotesShared.RecordingState
  18. fieldvar _shouldShowTextViewOnFreshLaunch: Bool
  19. fieldvar _showTranscriptToggle: Bool
  20. fieldvar _subtitleTimerTick: Bool
  21. fieldvar _transcriptInteractionActionTypes: [String]
  22. fieldvar _transcriptInteractionTargets: [String]
  23. fieldvar _transcriptViewed: Bool
  24. fieldvar _transcriptionModelState: NotesShared.TranscriptionModelState?
  25. fieldlet attachmentModel: ICAttachmentAudioModel
  26. fieldlet audioController: ICAudioController
  27. fieldlet copyActionType: String
  28. fieldlet fullInsertToNoteActionType: String
  29. fieldlet generator: NotesUI.AudioWaveformGenerator
  30. fieldlet liveTranscriptionCoordinator: NotesShared.LiveTranscriptionCoordinator
  31. fieldlet networkMonitor: Network.NWPathMonitor
  32. fieldlet partialInsertToNoteActionType: String
  33. fieldvar subtitleTimerTask: Task<(), Never>?
  34. fieldlet summaryViewModel: NotesEditor.SummaryViewModel
  35. fieldlet transcriptTarget: String
  36. fieldlet unknownActionType: String
  37. fieldlet unknownTarget: String
  38. funcaddSummaryToNote() async -> ()
  39. funcaddTitleAndSummaryToNote() async -> ()
  40. funcaddTranscript(to: UITextView) -> ()
  41. funcbackByConstant(timeInterval: Double) -> ()
  42. funcbackByPercent(percent: Int) -> ()
  43. funccopyTranscript() -> ()
  44. funcdeleteAttachment() -> ()
  45. funcdidTapRecordingButton() async throws -> ()
  46. funcdownloadTranscriptionModelIfNeeded() async throws -> ()
  47. funcforwardByConstant(timeInterval: Double) -> ()
  48. funcforwardByPercent(percent: Int) -> ()
  49. funcpausePlayback() -> ()
  50. funcperformAction(for: NotesShared.TranscriptionModelState) -> ()
  51. funcplay(at: Double?) -> ()
  52. funcrefreshTitleString() -> ()
  53. funcremoveTranscriptionModel() async -> ()
  54. funcresetAnalyticsTracking() -> ()
  55. funcsetTranscriptViewed() -> ()
  56. funcsetTranscriptionStateIfNeeded() -> ()
  57. funcsetupObservers() -> ()
  58. funcskipToPreviousSegment(fromTime: Double, count: Int) -> ()
  59. funcskipToSubsequentSegment(fromTime: Double, count: Int) -> ()
  60. funcstopPlayback() -> ()
  61. funcstopRecordingFinal() async throws -> ()
  62. funcupdateMicrophoneState() -> ()
  63. initNotesEditor.RecordingViewModel.__allocating_init(attachmentModel: ICAttachmentAudioModel, liveTranscriptionCoordinator: NotesShared.LiveTranscriptionCoordinator, summaryViewModel: NotesEditor.SummaryViewModel) -> NotesEditor.RecordingViewModel
  64. varvar allowsTranscriptionRead: Bool { get }
  65. varvar allowsTranscriptionWrite: Bool { get }
  66. varvar assetDuration: Double { get }
  67. varvar bottomBarRegionBottomInset: CoreGraphics.CGFloat? { get set }
  68. varvar canBePlayedBack: Bool { get set }
  69. varvar currentTitleString: String { get set }
  70. varvar hasTranscriptString: Bool { get }
  71. varvar isCallRecording: Bool { get set }
  72. varvar isPlaying: Bool { get set }
  73. varvar isTranscriptMenuItemDisabled: Bool { get }
  74. varvar lastPlaybackTime: Double { get set }
  75. varvar needsSeekToTime: Bool { get set }
  76. varvar playbackTime: Double { get set }
  77. varvar recordingDurationWhenResumed: Double { get set }
  78. varvar recordingIsPaused: Bool { get }
  79. varvar recordingState: NotesShared.RecordingState { get set }
  80. varvar showTranscriptToggle: Bool { get set }
  81. varvar subtitleTimerTick: Bool { get }
  82. varvar transcriptInteractionActionTypes: [String] { get set }
  83. varvar transcriptInteractionTargets: [String] { get set }
  84. varvar transcriptViewed: Bool { get set }
  85. varvar transcriptionModelState: NotesShared.TranscriptionModelState? { get }
@Observation.Observable
class RecordingViewModel {
    enum MicrophoneState {
        case available
        case unavailable

        var localizedMessage: Swift.String? {
            get
        }
        var localizedTitle: Swift.String? {
            get
        }
    }
    enum AccessibilityScrubMode {
        case percent
        case constantTime
        case transcript
    }
    var recordingState: NotesShared.RecordingState
    var isPlaying: Swift.Bool
    var playbackTime: Swift.Double
    var lastPlaybackTime: Swift.Double
    var needsSeekToTime: Swift.Bool
    var recordingDurationWhenResumed: Swift.Double
    var showTranscriptToggle: Swift.Bool
    var transcriptViewed: Swift.Bool
    var transcriptInteractionTargets: [Swift.String]
    var transcriptInteractionActionTypes: [Swift.String]
    let attachmentModel: __C.ICAttachmentAudioModel
    let generator: NotesUI.AudioWaveformGenerator
    // synthesized from the storage `_recordingManager` that @Observable generated; the property's own accessors are stripped
    var recordingManager: NotesUI.AudioRecordingManager
    let audioController: __C.ICAudioController
    // synthesized from the storage `_observers` that @Observable generated; the property's own accessors are stripped
    var observers: Swift.Set<Combine.AnyCancellable>
    var canBePlayedBack: Swift.Bool
    var isCallRecording: Swift.Bool
    var currentTitleString: Swift.String
    var subtitleTimerTick: Swift.Bool
    @Observation.ObservationIgnored
    var subtitleTimerTask: Swift.Task<(), Swift.Never>?
    let liveTranscriptionCoordinator: NotesShared.LiveTranscriptionCoordinator
    let summaryViewModel: NotesEditor.SummaryViewModel
    // synthesized from the storage `_shouldShowTextViewOnFreshLaunch` that @Observable generated; the property's own accessors are stripped
    var shouldShowTextViewOnFreshLaunch: Swift.Bool
    var bottomBarRegionBottomInset: CoreGraphics.CGFloat?
    let networkMonitor: Network.NWPathMonitor
    var transcriptionModelState: NotesShared.TranscriptionModelState?
    // synthesized from the storage `_lastKnownAssetDuration` that @Observable generated; the property's own accessors are stripped
    var lastKnownAssetDuration: Swift.Double?
    // synthesized from the storage `_microphoneState` that @Observable generated; the property's own accessors are stripped
    var microphoneState: NotesEditor.RecordingViewModel.MicrophoneState
    // synthesized from the storage `_accessibilityScrubMode` that @Observable generated; the property's own accessors are stripped
    var accessibilityScrubMode: NotesEditor.RecordingViewModel.AccessibilityScrubMode?
    let transcriptTarget: Swift.String
    let unknownTarget: Swift.String
    let fullInsertToNoteActionType: Swift.String
    let partialInsertToNoteActionType: Swift.String
    let copyActionType: Swift.String
    let unknownActionType: Swift.String

    var recordingIsPaused: Swift.Bool {
        get
    }
    func refreshTitleString()
    init(attachmentModel: __C.ICAttachmentAudioModel, liveTranscriptionCoordinator: NotesShared.LiveTranscriptionCoordinator, summaryViewModel: NotesEditor.SummaryViewModel)
    var allowsTranscriptionRead: Swift.Bool {
        get
    }
    var allowsTranscriptionWrite: Swift.Bool {
        get
    }
    var hasTranscriptString: Swift.Bool {
        get
    }
    func downloadTranscriptionModelIfNeeded() async throws
    func removeTranscriptionModel() async
    func setTranscriptionStateIfNeeded()
    func performAction(for: NotesShared.TranscriptionModelState)
    func setupObservers()
    func didTapRecordingButton() async throws
    func stopRecordingFinal() async throws
    var assetDuration: Swift.Double {
        get
    }
    func play(at: Swift.Double?)
    func pausePlayback()
    func stopPlayback()
    func backByConstant(timeInterval: Swift.Double)
    func forwardByConstant(timeInterval: Swift.Double)
    func backByPercent(percent: Swift.Int)
    func forwardByPercent(percent: Swift.Int)
    func addTranscript(to: __C.UITextView)
    var isTranscriptMenuItemDisabled: Swift.Bool {
        get
    }
    func addSummaryToNote() async
    func addTitleAndSummaryToNote() async
    func copyTranscript()
    func deleteAttachment()
    func skipToPreviousSegment(fromTime: Swift.Double, count: Swift.Int)
    func skipToSubsequentSegment(fromTime: Swift.Double, count: Swift.Int)
    func updateMicrophoneState()
    func resetAnalyticsTracking()
    func setTranscriptViewed()

    deinit
}