A type that describes a modification to the playback queue.
Use this type to inform the participant about changes to the playback
queue associated with the current activity. Your app manages the queue,
along with any additions or changes. You use this type to communicate those
changes back to the participant using the system UI.
When a change occurs, configure this type with information about the change,
and wrap it in a ``GroupSessionEvent/Action-swift.struct`` type. Pass the
action to the ``GroupSession/showNotice(_:)`` method to display the change
to the participant.
Returns a queue change for an added item.
Before showing a notice to the user, call this method to
generate a type for the added item. Pass this type to the
``GroupSessionEvent/Action-swift.struct/updatedQueue(_:)`` method to
create the postable action.
- Parameters:
- item: The item the participant added to the queue.
- Returns: A type that contains information about the change.
Returns a queue change for a new up-next item.
Before showing a notice to the user, call this method to
generate a type for the changed up-next item. Pass this type to the
``GroupSessionEvent/Action-swift.struct/updatedQueue(_:)`` method to
create the postable action.
- Parameters:
- item: The next item in the queue.
- Returns: A type that contains information about the change.