attributes
TypeScriptget attributes(): AccessoryNotification_AttributesSwift declarationlet attributes: AccessoryNotification.AttributesThe attributes to apply to this notification.
struct · iOS 26.5+ · SDK 27.1
struct AccessoryNotificationget attributes(): AccessoryNotification_AttributesSwift declarationlet attributes: AccessoryNotification.AttributesThe attributes to apply to this notification.
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>): AccessoryNotificationSwift declarationinit(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 identifier(): AccessoryNotification_IdentifierSwift declarationlet identifier: AccessoryNotification.IdentifierA collection of properties that uniquely identify this notification.
get sourceIcon(): (AccessoryNotification_File) | nullSwift declarationlet sourceIcon: AccessoryNotification.File?The icon associated with the source that sent this notification.
get sourceName(): stringSwift declarationlet sourceName: StringThe name of the bundle that sent this notification.
get attachments(): Array<AccessoryNotification_File>Swift declarationlet attachments: [AccessoryNotification.File]An array of files sent with the notification.
get contextIcon(): (AccessoryNotification_File) | nullSwift declarationlet 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 displayDate(): AccessoryNotification_DisplayDateSwift declarationlet displayDate: AccessoryNotification.DisplayDateThe preferred date and format to be displayed with the notification.
get deliveryDate(): globalThis.DateSwift declarationlet deliveryDate: DateThe timestamp of when the system received this notification.
get threadIdentifier(): (string) | nullSwift declarationlet threadIdentifier: String?An identifier to match the thread this notification belongs to.
get body(): (_Foundation_NSAttributedString) | nullSwift declarationlet body: NSAttributedString?The main content of the notification as an attributed string.
get title(): (string) | nullSwift declarationlet title: String?The primary text of the notification for display.
get actions(): Array<AccessoryNotification_Action>Swift declarationlet 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 summary(): (_Foundation_NSAttributedString) | nullSwift declarationlet summary: NSAttributedString?The Apple Intelligence Summary represented as an attributed string.
get subtitle(): (string) | nullSwift declarationlet subtitle: String?The secondary text of the notification for display.
No declarations were skipped in this snapshot.