setInvalidateHandler(_:)
Sets a closure for the sample buffer to call when it’s invalidated.
Declaration
func setInvalidateHandler(_ body: @escaping (CMSampleBuffer) throws -> Void) throwsParameters
- body:
The invalidation handler.
Discussion
A sample buffer can only have one invalidation handler.