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

# init(_:)

Initializes a notifications-forwarding capability with a handler factory.

```
init(_ handlerFactory: @escaping @Sendable () -> any NotificationsForwarding.AccessoryNotificationsHandler)
```

## Parameters

`handlerFactory`

A closure that creates and returns an [`NotificationsForwarding.AccessoryNotificationsHandler`](/documentation/AccessoryNotifications/NotificationsForwarding/AccessoryNotificationsHandler) instance.

---

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)