Contents

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.

See Also

Related Documentation

Managing Badges, Shortcut Menus, and Toolbar Buttons