How do I send messages using Shareplay

Asked on 01/25/2025

1 search

To send messages using SharePlay, you can utilize the group session messenger to synchronize state with other participants. This is part of the session controller class, which manages interactions with the current SharePlay group session. The session controller is responsible for tracking and synchronizing all of the app state during a given SharePlay session. It stores the session itself and uses a group session messenger to synchronize state with other participants.

For more detailed information on how to implement this, you can refer to the session titled "Customize spatial Persona templates in SharePlay" from WWDC 2024. You can find relevant details starting at the SharePlay on visionOS chapter.