One Logo Pool Ball
CoreMedia · IOS API REFERENCE

CMAttachmentBearerAttachments

struct · iOS 13.0+ · SDK 27.1

struct CMAttachmentBearerAttachments

Members (6)

get · iOS 13.0+

propagated

TypeScript
get propagated(): Record<string, unknown>
Swift declaration
var propagated: [String : Any] { get }

Dictionary of propagated attachments.

get · iOS 13.0+

nonPropagated

TypeScript
get nonPropagated(): Record<string, unknown>
Swift declaration
var nonPropagated: [String : Any] { get }

Dictionary of non propagated attachments.

method · iOS 13.0+

merge

TypeScript
merge(attachments: Record<string, unknown>, mode: CMAttachmentBearerAttachments_Mode): void
Swift declaration
func merge(_ attachments: [String : Any], mode: CMAttachmentBearerAttachments.Mode)

Sets a set of attachments for a `CMAttachmentBearerProtocol` object. `attachments.merge(_:mode:)` is a convenience call that in turn calls `attachments[key] = mode(value)` for each key and value in the given dictionary - Parameters: - attachments: Attachments to attach and their keys. - mode: The mode of the attachments.

method · iOS 13.0+

removeAll

TypeScript
removeAll(): void
Swift declaration
func removeAll()

Removes all attachments of a `CMAttachmentBearerProtocol` object.

subscript · iOS 13.0+

subscript

TypeScript
subscript(key: string): (CMAttachmentBearerAttachments_Value) | null
Swift declaration
subscript(key: String) -> CMAttachmentBearerAttachments.Value? { get set }

Accesses the attachment associated with the given key for reading and writing. You can attach any object to a `CMAttachmentBearerProtocol` object to store additional information. If the key doesn't exist, the attachment will be added. If the key does exist, the existing attachment will be replaced. If you assign `nil` as the value for the given key, the attachment bearer removes that key and its associated value. - Parameter key: Key identifying the desired attachment.

subscript · iOS 13.0+

subscript

TypeScript
subscript92196(key: CMSampleBuffer_AttachmentKey): (CMAttachmentBearerAttachments_Value) | null
Swift declaration
subscript(key: CMSampleBuffer.AttachmentKey) -> CMAttachmentBearerAttachments.Value? { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All CoreMedia types →