<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/keys-for-use-with-a-notification-info-dictionary",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Keys for Use with a Notification Info Dictionary"
}
-->

# Keys for Use with a Notification Info Dictionary

Constants for keys to retrieve the collection of changed items from a notification’s user info dictionary.

## Discussion

When querying the ubiquitous scope, these keys get added to the user info dictionary only in OS X v10.10 and iOS 8.0 or later, and only when iCloud Drive is enabled for the user’s iCloud account. To track changes in earlier versions of the SDK, use KVO on the query’s `results` property instead.

## Topics

### Constants

[`let NSMetadataQueryUpdateAddedItemsKey: String`](/documentation/Foundation/NSMetadataQueryUpdateAddedItemsKey)

The key for retrieving an array of items added to the query result. By default, this array contains [`NSMetadataItem`](/documentation/Foundation/NSMetadataItem) objects, representing the query’s results; however, the query’s delegate can substitute these objects with instances of a different class.

[`let NSMetadataQueryUpdateChangedItemsKey: String`](/documentation/Foundation/NSMetadataQueryUpdateChangedItemsKey)

The key for retrieving an array of items that have changed in the query result. By default, this array contains [`NSMetadataItem`](/documentation/Foundation/NSMetadataItem) objects, representing the query’s results; however, the query’s delegate can substitute these objects with instances of a different class.

[`let NSMetadataQueryUpdateRemovedItemsKey: String`](/documentation/Foundation/NSMetadataQueryUpdateRemovedItemsKey)

The key for retrieving an array of items removed from the query result. By default, this array contains [`NSMetadataItem`](/documentation/Foundation/NSMetadataItem) objects, representing the query’s results; however, the query’s delegate can substitute these objects with instances of a different class.



---

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)