One Logo Pool Ball
GroupActivities · IOS API REFERENCE

GroupSessionJournal.Attachment

struct · iOS 17.0+ · SDK 27.1

struct Attachment

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.

Members (3)

method · iOS 17.0+

loadMetadata

TypeScript
loadMetadata(of: "Bool" | "Int" | "UInt" | "Double" | "Float" | "String" | "CGFloat" | "Date" | "URL" | "Data" | "UUID"): Promise<unknown>
Swift declaration
func loadMetadata<MetadataType>(of: MetadataType.Type) async throws -> MetadataType where MetadataType : Decodable, MetadataType : Encodable

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

All GroupActivities types →