One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKAttachment

class · iOS 16.0+ · SDK 27.1

class HKAttachment

Members (6)

get · iOS 16.0+

contentType

TypeScript
get contentType(): _UniformTypeIdentifiers_UTType
Swift declaration
var contentType: UTType { get }
get · iOS 16.0+

creationDate

TypeScript
get creationDate(): globalThis.Date
Swift declaration
var creationDate: Date { get }
get · iOS 16.0+

identifier

TypeScript
get identifier(): string
Swift declaration
var identifier: UUID { get }
get · iOS 16.0+

metadata

TypeScript
get metadata(): (Record<string, unknown>) | null
Swift declaration
var metadata: [String : Any]? { get }
get · iOS 16.0+

name

TypeScript
get name(): string
Swift declaration
var name: String { get }
get · iOS 16.0+

size

TypeScript
get size(): number
Swift declaration
var size: Int { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HKAttachment.init()

inherited init: clang: 'init' is unavailable

All HealthKit types →