attachment
TypeScriptget attachment(): HKAttachmentSwift declarationvar attachment: HKAttachment { get }The attachment for which to read data.
class · iOS 16.0+ · SDK 27.1
class HKAttachmentDataReaderThe HKAttachmentDataReader class provides an interface for accessing the data of an HKAttachment object.
get attachment(): HKAttachmentSwift declarationvar attachment: HKAttachment { get }The attachment for which to read data.
get data(): Promise<ArrayBuffer>Swift declarationvar data: Data { get async throws }The `Data` of the receiver's `attachment` property. Prefer `bytes` for large files that support incremental reading to limit your app's peak memory usage.
get bytes(): HKAttachment_AsyncBytesSwift declarationvar bytes: HKAttachment.AsyncBytes { get }An ordered async sequence of bytes for the receiver's `attachment` property.
get progress(): _Foundation_ProgressSwift declarationvar progress: Progress { get }Tracks the progress of downloading the file from iCloud. An `HKAttachment`'s file may not always be available locally, and could be stored in iCloud.
No declarations were skipped in this snapshot.