requestBadgeIdentifier(for:)
Requests a badge for the given file or directory.
Declaration
optional func requestBadgeIdentifier(for url: URL)Parameters
- url:
The URL of a file or directory inside the extension’s monitored directories.
Discussion
Override this method to receive notifications whenever a new item becomes visible in the Finder. Check the item’s state, and call setBadgeIdentifier(_:for:) to set an appropriate badge.