<!--
{
  "availability" : [
    "iOS: 26.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryNotifications",
  "identifier" : "/documentation/AccessoryNotifications/AccessoryNotification/Action/init(identifier:title:type:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accessory Notifications"
    ],
    "preciseIdentifier" : "s:22AccessoryNotifications0A12NotificationV6ActionV10identifier5title4typeAESS_SSSgAE0D4TypeOtcfc"
  },
  "title" : "init(identifier:title:type:)"
}
-->

# init(identifier:title:type:)

Initializes a notification action with the given identifier, title, and type.

```
init(identifier: String, title: String? = nil, type: AccessoryNotification.Action.ActionType)
```

## Parameters

`identifier`

A unique identifier for the action.

`title`

The action’s display title.

`type`

The action’s type.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)