次の方法で共有


CMAttachmentBearer.GetAttachment メソッド

定義

オーバーロード

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

によって key 識別される添付ファイルを返し、添付ファイル伝達モードを に 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)

型パラメーター

T

パラメーター

attachmentModeOut
CMAttachmentMode

戻り値

T

適用対象

GetAttachment<T>(ICMAttachmentBearer, String, CMAttachmentMode)

によって key 識別される添付ファイルを返し、添付ファイル伝達モードを に 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)

型パラメーター

T

取得する添付ファイルの種類。

パラメーター

target
ICMAttachmentBearer

このメソッドが動作するオブジェクト。

key
String

返す添付ファイルを識別する文字列。

attachmentModeOut
CMAttachmentMode

添付ファイルを伝達するかどうかを示す値を受け取る out パラメーター。

戻り値

T

指定した添付ファイル。

適用対象