notifyOfDataReady(for:completionHandler:)
Notifies the sample buffer generator when data is ready for the sample buffer reference or an error has occurred.
Declaration
class func notifyOfDataReady(for sbuf: CMSampleBuffer, completionHandler: @escaping @Sendable (Bool, (any Error)?) -> Void)class func notifyOfDataReady(for sbuf: CMSampleBuffer) async throwsParameters
- sbuf:
The
CMSampleBufferRef. - completionHandler:
A completion block that is called when data is ready for the sample buffer or an error occurs. The
dataReadyargument is True if data is read for the sample buffer. If an error occurs, theerrorargument contains theNSErrorobject.