<!--
{
  "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/QueueChange/Item/song(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities0A12SessionEventV6ActionV11QueueChangeV4ItemV4songyAISSFZ"
  },
  "title" : "song(_:)"
}
-->

# song(_:)

Creates an item that contains the name of a song.

```
static func song(_ name: String) -> GroupSessionEvent.Action.QueueChange.Item
```

## Parameters

`name`

The name of the song.

## Discussion

When a participant adds a song or changes the next song in the queue,
call this method to create an item with the song name. When you show
the change notice, SharePlay displays the song name to the participant.

---

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)