One Logo Pool Ball
AccessoryNotifications · IOS API REFERENCE

AccessoryNotification

struct · iOS 26.5+ · SDK 27.1

struct AccessoryNotification

Members (15)

get · iOS 26.5+

attributes

TypeScript
get attributes(): AccessoryNotification_Attributes
Swift declaration
let attributes: AccessoryNotification.Attributes

The attributes to apply to this notification.

init · iOS 26.5+

init

TypeScript
static init(identifier: AccessoryNotification_Identifier, sourceName: string, deliveryDate: globalThis.Date, displayDate?: AccessoryNotification_DisplayDate, title?: (string) | null, subtitle?: (string) | null, body?: (_Foundation_NSAttributedString) | null, threadIdentifier?: (string) | null, attributes?: AccessoryNotification_Attributes, summary?: (_Foundation_NSAttributedString) | null, actions?: Array<AccessoryNotification_Action>, sourceIcon?: (AccessoryNotification_File) | null, contextIcon?: (AccessoryNotification_File) | null, attachments?: Array<AccessoryNotification_File>): AccessoryNotification
Swift declaration
init(identifier: AccessoryNotification.Identifier, sourceName: String, deliveryDate: Date, displayDate: AccessoryNotification.DisplayDate = .deliveryDate, title: String? = nil, subtitle: String? = nil, body: NSAttributedString? = nil, threadIdentifier: String? = nil, attributes: AccessoryNotification.Attributes = [], summary: NSAttributedString? = nil, actions: [AccessoryNotification.Action] = [], sourceIcon: AccessoryNotification.File? = nil, contextIcon: AccessoryNotification.File? = nil, attachments: [AccessoryNotification.File] = [])
get · iOS 26.5+

identifier

TypeScript
get identifier(): AccessoryNotification_Identifier
Swift declaration
let identifier: AccessoryNotification.Identifier

A collection of properties that uniquely identify this notification.

get · iOS 26.5+

sourceIcon

TypeScript
get sourceIcon(): (AccessoryNotification_File) | null
Swift declaration
let sourceIcon: AccessoryNotification.File?

The icon associated with the source that sent this notification.

get · iOS 26.5+

sourceName

TypeScript
get sourceName(): string
Swift declaration
let sourceName: String

The name of the bundle that sent this notification.

get · iOS 26.5+

attachments

TypeScript
get attachments(): Array<AccessoryNotification_File>
Swift declaration
let attachments: [AccessoryNotification.File]

An array of files sent with the notification.

get · iOS 26.5+

contextIcon

TypeScript
get contextIcon(): (AccessoryNotification_File) | null
Swift declaration
let contextIcon: AccessoryNotification.File?

A secondary icon that provides additional contextual information about the notification. For example this can be the image of the sender or group chat for a communication notification.

get · iOS 26.5+

displayDate

TypeScript
get displayDate(): AccessoryNotification_DisplayDate
Swift declaration
let displayDate: AccessoryNotification.DisplayDate

The preferred date and format to be displayed with the notification.

get · iOS 26.5+

deliveryDate

TypeScript
get deliveryDate(): globalThis.Date
Swift declaration
let deliveryDate: Date

The timestamp of when the system received this notification.

get · iOS 26.5+

threadIdentifier

TypeScript
get threadIdentifier(): (string) | null
Swift declaration
let threadIdentifier: String?

An identifier to match the thread this notification belongs to.

get · iOS 26.5+

body

TypeScript
get body(): (_Foundation_NSAttributedString) | null
Swift declaration
let body: NSAttributedString?

The main content of the notification as an attributed string.

get · iOS 26.5+

title

TypeScript
get title(): (string) | null
Swift declaration
let title: String?

The primary text of the notification for display.

get · iOS 26.5+

actions

TypeScript
get actions(): Array<AccessoryNotification_Action>
Swift declaration
let actions: [AccessoryNotification.Action]

An array of possible interations that the user can have with the notification. Typically presented in the order given in the array.

get · iOS 26.5+

summary

TypeScript
get summary(): (_Foundation_NSAttributedString) | null
Swift declaration
let summary: NSAttributedString?

The Apple Intelligence Summary represented as an attributed string.

get · iOS 26.5+

subtitle

TypeScript
get subtitle(): (string) | null
Swift declaration
let subtitle: String?

The secondary text of the notification for display.

Skipped declarations

No declarations were skipped in this snapshot.

All AccessoryNotifications types →