<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafariServices",
  "identifier" : "/documentation/SafariServices/SFSafariApplication/setToolbarItemsNeedUpdate()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Safari Services"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSafariApplication(cm)setToolbarItemsNeedUpdate"
  },
  "title" : "setToolbarItemsNeedUpdate()"
}
-->

# setToolbarItemsNeedUpdate()

Updates the enabled states and badges of toolbar items.

```
class func setToolbarItemsNeedUpdate()
```

## Discussion

This method calls the [`validateToolbarItem(in:validationHandler:)`](/documentation/SafariServices/SFSafariExtensionHandling/validateToolbarItem(in:validationHandler:)) method on the extension’s principal object for each open window. See [`SFSafariExtensionHandling`](/documentation/SafariServices/SFSafariExtensionHandling).

---

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)