---
title: setToolbarItemsNeedUpdate()
framework: safariservices
role: symbol
role_heading: Type Method
path: safariservices/sfsafariapplication/settoolbaritemsneedupdate()
---

# setToolbarItemsNeedUpdate()

Updates the enabled states and badges of toolbar items.

## Declaration

```swift
class func setToolbarItemsNeedUpdate()
```

## Discussion

Discussion This method calls the validateToolbarItem(in:validationHandler:) method on the extension’s principal object for each open window. See SFSafariExtensionHandling.
