---
title: GroupActivity.Sessions
framework: groupactivities
role: symbol
role_heading: Type Alias
path: groupactivities/groupactivity/sessions
---

# GroupActivity.Sessions

A type that provides asynchronous, sequential, iterated access to the sessions for the activity.

## Declaration

```swift
typealias Sessions = GroupSession<Self>.Sessions
```

## Discussion

Discussion A Sessions type contains a sequence of GroupSession objects specific to the current activity. The sessions() method returns this type, and you use it to retrieve the current session, if any, for that activity. The system creates only one GroupSession object for each new activity. To detect changes to the session’s state, activity type, or active participants, subscribe to the corresponding properties.

## See Also

### Receiving an activity-related session

- [sessions()](groupactivities/groupactivity/sessions().md)
