---
title: GroupSessionEvent
framework: groupactivities
role: symbol
role_heading: Structure
path: groupactivities/groupsessionevent
---

# GroupSessionEvent

A session-related event that appears in the system UI.

## Declaration

```swift
struct GroupSessionEvent
```

## Overview

Overview Use this structure to specify the contents of custom activity-related events. The AV Foundation framework posts media-related events to the system on your app’s behalf; create an instance of this structure if your app posts additional events that don’t route through AV Foundation. After creating an instance of this structure, post it to the system using the showNotice(_:) method of GroupSession.

## Topics

### Creating a group session event

- [init(originator:action:url:)](groupactivities/groupsessionevent/init(originator:action:url:).md)

### Getting the event details

- [originator](groupactivities/groupsessionevent/originator.md)
- [url](groupactivities/groupsessionevent/url.md)
- [action](groupactivities/groupsessionevent/action-swift.property.md)
- [GroupSessionEvent.Action](groupactivities/groupsessionevent/action-swift.struct.md)

## See Also

### Notifying participants of playback changes

- [showNotice(_:)](groupactivities/groupsession/shownotice(_:).md)
