HKStreamOutput

public protocol HKStreamOutput : AnyObject, Sendable

A delegate protocol your app implements to receive capture stream output events.

  • Tells the receiver to an audio buffer outgoing.

    Declaration

    Swift

    func stream(_ stream: some HKStream, didOutput audio: AVAudioBuffer, when: AVAudioTime)
  • Tells the receiver to a video buffer outgoing.

    Declaration

    Swift

    func stream(_ stream: some HKStream, didOutput video: CMSampleBuffer)