<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/GroupSessionEvent/Action-swift.struct/updatedQueue(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Group Activities",
      "GroupActivities"
    ],
    "preciseIdentifier" : "s:15GroupActivities0A12SessionEventV6ActionV12updatedQueueyA2E0G6ChangeVFZ"
  },
  "title" : "updatedQueue(_:)"
}
-->

# updatedQueue(_:)

Returns an action that represents a change to the playback queue.

```
static func updatedQueue(_ change: GroupSessionEvent.Action.QueueChange) -> GroupSessionEvent.Action
```

## Parameters

`change`

The change that ocurred to the queue.

## Discussion

When you want to notify the user of changes to the playback queue,
call this method to create an action type with the details of the change.
Then call the [`showNotice(_:)`](/documentation/GroupActivities/GroupSession/showNotice(_:)) method to post that action.
For example, use the following code to notify the user that someone
added a song to the queue.

```
groupSession.showNotice(.updatedQueue(.added(.song("Here comes the sun"))))
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)