Instance Method

setDelegate(_:queue:)

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

Declaration

func setDelegate(_ delegate: AVPlayerItemMetadataCollectorPushDelegate?, queue delegateQueue: DispatchQueue?)

Parameters

delegate

An object conforming to AVPlayerItemMetadataCollectorPushDelegate protocol.

delegateQueue

A dispatch queue on which all delegate methods will be called.

See Also

Accessing the Delegate and Callback Queue

var delegate: AVPlayerItemMetadataCollectorPushDelegate?

Accesses the metadata collector’s delegate object.

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.