Share via


IAVCaptureVideoDataOutputSampleBufferDelegate Interface

Definition

Delegate class used to notify when a sample buffer has been written.

[Foundation.Protocol(Name="AVCaptureVideoDataOutputSampleBufferDelegate", WrapperType=typeof(AVFoundation.AVCaptureVideoDataOutputSampleBufferDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidOutputSampleBuffer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AVFoundation.AVCaptureOutput), typeof(CoreMedia.CMSampleBuffer), typeof(AVFoundation.AVCaptureConnection) }, Selector="captureOutput:didOutputSampleBuffer:fromConnection:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidDropSampleBuffer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AVFoundation.AVCaptureOutput), typeof(CoreMedia.CMSampleBuffer), typeof(AVFoundation.AVCaptureConnection) }, Selector="captureOutput:didDropSampleBuffer:fromConnection:")]
public interface IAVCaptureVideoDataOutputSampleBufferDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="AVCaptureVideoDataOutputSampleBufferDelegate", WrapperType=typeof(AVFoundation.AVCaptureVideoDataOutputSampleBufferDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidOutputSampleBuffer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AVFoundation.AVCaptureOutput), typeof(CoreMedia.CMSampleBuffer), typeof(AVFoundation.AVCaptureConnection) }, Selector="captureOutput:didOutputSampleBuffer:fromConnection:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidDropSampleBuffer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AVFoundation.AVCaptureOutput), typeof(CoreMedia.CMSampleBuffer), typeof(AVFoundation.AVCaptureConnection) }, Selector="captureOutput:didDropSampleBuffer:fromConnection:")>]
type IAVCaptureVideoDataOutputSampleBufferDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

See the sample linked on this page for a complete sample showing how to configure this delegate.

It is worth pointing out that the buffers delivered to the DidOutputSampleBuffer method come from a small pool of buffers in AVFoundation, and failure to call Dispose() on the buffers you receive will block the delivery of further frames.

Applies to

See also