Sets the receiver's delegate and indicates the dispatch queues used.
SDKs
- iOS 10.3+
- macOS 10.12.4+
- Mac Catalyst 13.0+
- tvOS 10.2+
Framework
- AVFoundation
Declaration
func setDelegate(_ delegate: AVContent Key Session Delegate?, queue delegateQueue: Dispatch Queue?)
Parameters
delegate
An object that conforms to the
AVContent
protocol.Key Session Delegate delegateQueue
The dispatch queue used to process delegate methods.
Discussion
The dispatch queue is used when processes requiring content keys are executed asynchronously. Passing a value of nil
for the dispatch queue along, with a non-nil
value for the delegate, results in an invalid argument exception.