Instance Property

relatedUniqueIdentifier

For activities, the unique identifier for the item to which the activity is related.

Declaration

@property(copy) NSString *relatedUniqueIdentifier;

Discussion

If you’re using both NSUserActivity and Core Spotlight APIs to index the same item, set this property in the activity to specify the unique identifier of the Core Spotlight item to which the activity is related, and to avoid displaying duplicate results in Spotlight.

If the unique identifier to which the activity is related hasn’t already been indexed with Core Spotlight, the activity won’t be indexed. Note that when the item is deleted, the related activity is also deleted, unlike the behavior of weakRelatedUniqueIdentifier.

See Also

Describing General Attributes

alternateNames

An array of localized strings that represent alternate display names for the item.

contentType

The uniform type identifier (that is, UTI) of the item.

contentTypeTree

An attribute type that identifies a custom hierarchy of types to describe the attributes of your item.

contentURL

The file URL of the content to be indexed.

displayName

A localized string that contains the name of the item, suitable to display in the user interface.

keywords

An array of keywords associated with the item, such as work, birthday, important, and so on.

metadataModificationDate

The date on which the last metadata attribute was changed.

path

The complete path to the item.

thumbnailData

Image data that represents the thumbnail of the item.

thumbnailURL

The local file URL of the thumbnail image for the item.

title

The title of the item.

domainIdentifier

An identifier that represents the domain or owner of the item.

weakRelatedUniqueIdentifier

For activities, the unique identifier for the item to which the activity is related, but not linked.