setDelegate(_:queue:)
Sets the receiver’s delegate and a dispatch queue on which the delegate is called.
Declaration
func setDelegate(_ delegate: (any AVPlayerItemLegibleOutputPushDelegate)?, queue delegateQueue: dispatch_queue_t?)Parameters
- delegate:
An object conforming to the Avplayeritemlegibleoutputpushdelegate protocol.
- delegateQueue:
A dispatch queue on which all delegate methods will be called.
Discussion
Because the delegate is held using a zeroing-weak reference, it is safe to deallocate the delegate while the receiver still has a reference to it.