One Logo Pool Ball
GroupActivities · IOS API REFERENCE

GroupSessionJournal.Attachments

struct · iOS 17.0+ · SDK 27.1

struct Attachments

An asynchronous sequence that contains one or more incoming attachment containers for you to process. After a participant uploads a file or data, the system makes that content available on the ``Attachments`` asynchronous sequence of each session participant. Configure an asynchronous task to monitor this sequence and process results when they arrive. The following example shows you how to configure this task and use it to iterate over the available items. The `journal` variable contains a previously configured ``GroupSessionJournal`` object. ``` let attachmentListener = Task { for await attachments in journal.attachments { for attachment in attachments { // Download and process each attachment. } } } ```

Members (1)

method · iOS 17.0+

makeAsyncIterator

TypeScript
makeAsyncIterator(): GroupSessionJournal_Attachments_Iterator
Swift declaration
func makeAsyncIterator() -> GroupSessionJournal.Attachments.Iterator

Creates the asynchronous iterator that produces elements of this asynchronous sequence. -Returns: An instance of the `Iterator` type that produces elements of the asynchronous sequence.

Skipped declarations

No declarations were skipped in this snapshot.

All GroupActivities types →