A container for the data you download.
When your app receives a new item, the system packages it in an
``GroupSessionJournal/Attachment`` and delivers it to your app. Use this
container type to download the contents of the file and decode it to a type that
your app recognizes.
Downloads the metadata for the attachment asynchronously and delivers it
as the type you specify.
- Parameters:
- of: The type for your attachment's custom metadata. This type must
match the one added with the attachment.
- Returns: The custom metadata object for the attachment.
Use this function to retrieve any metadata you included with the attachment.
You might use this metadata to retrieve app-specific details that aren't
part of the item's intrinsic data format.
get · iOS 17.0+
id
TypeScript
get id(): string
Swift declaration
var id: UUID
The unique identifier for this attachment.
set · iOS 17.0+
id
TypeScript
set id(value: string)
Swift declaration
var id: UUID
The unique identifier for this attachment.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
GroupSessionJournal.Attachment.load(_:)
The iOS SDK compiler rejected this binding: cannot find type 'CoreTransferable' in scope