Changes the contents of the media items in the queue.
- iOS 10.3+
- Mac Catalyst 13.0+
- Media Player
A block that is called while the queue is created.
The queue that is being modified.
A block that is called after the user has accepted the new queue.
The newly modified queue that was accepted by the user.
If an error occurred, this parameter holds the error object that explains the error. Otherwise, the value of this parameter is
Perform all of your queue modifications inside of the queue transition block. After the queue inside of the queue transition block has been modified, the new queue is returned from the completion handler after the user has accepted the new queue. Do not access the completion handler's queue outside of the completion handler.
If you modify the queue outside of the completion handler, register for the
MPMusic notification and ensure your app responds accordingly.