Instance Method

setDelegate:queue:

Sets the receiver's delegate and a dispatch queue on which the delegate is called.

Declaration

- (void)setDelegate:(id<AVPlayerItemLegibleOutputPushDelegate>)delegate queue:(dispatch_queue_t)delegateQueue;

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.

See Also

Configuring the Delegate

delegate

The delegate of the output class.

AVPlayerItemLegibleOutputPushDelegate

Methods you can implement to provide alternative attributed-string output.

advanceIntervalForDelegateInvocation

The time interval, in seconds, that a player item legible output object messages its delegate earlier than normal.

delegateQueue

The dispatch queue on which the delegate is called.