---
title: "updatedQueue(_:)"
framework: groupactivities
role: symbol
role_heading: Type Method
path: "groupactivities/groupsessionevent/action-swift.struct/updatedqueue(_:)"
---

# updatedQueue(_:)

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

## Declaration

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

## Parameters

- `change`: The change that ocurred to the queue.

## Discussion

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(_:) 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"))))

## See Also

### Getting change-related actions

- [updatedQueue](groupactivities/groupsessionevent/action-swift.struct/updatedqueue.md)
- [GroupSessionEvent.Action.QueueChange](groupactivities/groupsessionevent/action-swift.struct/queuechange.md)
