Instance Property

delegate

Accesses the metadata collector’s delegate object.

Declaration

weak var delegate: AVPlayerItemMetadataCollectorPushDelegate? { get }

Discussion

The delegate is held using a zeroing-weak reference, so this property will have a value of nil after a delegate that was previously set has been deallocated.

This property is not key-value observable.

See Also

Accessing the Delegate and Callback Queue

func setDelegate(AVPlayerItemMetadataCollectorPushDelegate?, queue: DispatchQueue?)

Sets the delegate and a dispatch queue on which the delegate will be called.

protocol AVPlayerItemMetadataCollectorPushDelegate

A protocol you implement to receive metadata callbacks from a player item metadata collector.

var delegateQueue: DispatchQueue?

The dispatch queue on which the delegate’s methods are called.