CMAttachmentBearer.GetAttachment Method

Definition

Overloads

GetAttachment<T>(ICMAttachmentBearer, CMSampleBufferAttachmentKey, CMAttachmentMode)
GetAttachment<T>(ICMAttachmentBearer, String, CMAttachmentMode)

Returns the attachment that is identifed by key and writes the attachment propagation mode to attachmentModeOut.

GetAttachment<T>(ICMAttachmentBearer, CMSampleBufferAttachmentKey, CMAttachmentMode)

public static T GetAttachment<T> (this CoreMedia.ICMAttachmentBearer target, CoreMedia.CMSampleBufferAttachmentKey key, out CoreMedia.CMAttachmentMode attachmentModeOut) where T : class, ObjCRuntime.INativeObject;
static member GetAttachment : CoreMedia.ICMAttachmentBearer * CoreMedia.CMSampleBufferAttachmentKey *  -> 'T (requires 'T : null and 'T :> ObjCRuntime.INativeObject)

Type Parameters

T

Parameters

attachmentModeOut
CMAttachmentMode

Returns

T

Applies to

GetAttachment<T>(ICMAttachmentBearer, String, CMAttachmentMode)

Returns the attachment that is identifed by key and writes the attachment propagation mode to attachmentModeOut.

public static T GetAttachment<T> (this CoreMedia.ICMAttachmentBearer target, string key, out CoreMedia.CMAttachmentMode attachmentModeOut) where T : class, ObjCRuntime.INativeObject;
static member GetAttachment : CoreMedia.ICMAttachmentBearer * string *  -> 'T (requires 'T : null and 'T :> ObjCRuntime.INativeObject)

Type Parameters

T

The type of attachment to get.

Parameters

target
ICMAttachmentBearer

The object on which this method operates.

key
String

The string that identifies the attachment to return.

attachmentModeOut
CMAttachmentMode

An out parameter that receives a value that tells whether the attachment should propagate or not.

Returns

T

The specified attachment.

Applies to