<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/CSSearchableItemAttributeSet",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Spotlight"
    ],
    "preciseIdentifier" : "c:objc(cs)CSSearchableItemAttributeSet"
  },
  "title" : "CSSearchableItemAttributeSet"
}
-->

# CSSearchableItemAttributeSet

The detailed metadata for a searchable item.

```
class CSSearchableItemAttributeSet
```

## Overview

A `CSSearchableItemAttributeSet` contains an extensive set of attributes
that describe your app’s content. Attributes include information such as
its title and a brief description. They can also refer to who created
the item, what kind of data it represents, when someone created it, and
more. During the indexing process, you create [`CSSearchableItem`](/documentation/CoreSpotlight/CSSearchableItem)
objects and use a `CSSearchableItemAttributeSet` to fill in the
attributes for that item. During a search, you can query the index for
items with attributes that match specific values.

When creating a [`CSSearchableItem`](/documentation/CoreSpotlight/CSSearchableItem), it’s important to fill out as much
information in the accompanying `CSSearchableItemAttributeSet` object
as possible. You don’t have to provide values for every attribute.
Instead, choose attributes that match the domain of your content. This
type divides attributes into groups such as media, documents, events,
places, music, images, and more. You can also add custom attributes to
describe new types of content. When defining custom attributes, be as
specific as possible in your definition, and provide a value for the
[`contentTypeTree`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentTypeTree) property so your custom attribute inherits
from a known type.

> Important: Modify a `CSSearchableItemAttributeSet` object on only
> one thread at a time. Concurrent access to properties in an attribute
> set has undefined behavior.

## Topics

### Creating an attribute set

[`-  initWithContentType:`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/init(contentType:))

Creates an attribute set for the specified content type.

[`init(coder:)`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/init(coder:))

### Accessing custom attributes

[`-  setValue:forCustomKey:`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/setValue(_:forCustomKey:))

Sets the value for a custom attribute key.

[`-  valueForCustomKey:`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/value(forCustomKey:))

Returns the value associated with the specified custom attribute key.

### Adding an indexable app entity

[`associateAppEntity(_:priority:)`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/associateAppEntity(_:priority:))

Associates the specified app entity with this attribute set.

### Handling Apple Intelligence prioritization and summarization

[`isPriority`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/isPriority)

A Boolean value that indicates whether the mail or messages content represents a prioritized item.

[`textContentSummary`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/textContentSummary)

A string that presents the Apple Intelligence summarization of the item.

[`transcribedTextContent`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/transcribedTextContent)

A string that represents the text the system transcribed.

### Providing item representations

[`providerDataTypeIdentifiers`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/providerDataTypeIdentifiers)

An array of type identifiers that correspond to data types your delegate object can provide.

[`providerFileTypeIdentifiers`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/providerFileTypeIdentifiers)

An array of type identifiers that correspond to file types your delegate object can provide.

[`providerInPlaceFileTypeIdentifiers`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/providerInPlaceFileTypeIdentifiers)

An array of type identifiers that correspond to in-place file types your delegate object can provide.

### Describing general attributes

[`alternateNames`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/alternateNames)

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

[`contentType`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentType)

The uniform type identifier (UTI) of the item.

[`contentTypeTree`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentTypeTree)

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

[`contentURL`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentURL)

The file URL of the content to index.

[`darkThumbnailURL`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/darkThumbnailURL)

The local file URL of the thumbnail image for the item when Dark Mode is active.

[`displayName`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/displayName)

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

[`keywords`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/keywords)

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

[`metadataModificationDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/metadataModificationDate)

The date on which the last metadata attribute was changed.

[`path`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/path)

The complete path to the item.

[`rankingHint`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/rankingHint)

A number that indicates the relative importance of the item among other items from the app.

[`relatedUniqueIdentifier`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/relatedUniqueIdentifier)

The unique identifier for the item to which the activity is related.

[`thumbnailData`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/thumbnailData)

Image data that represents the thumbnail of the item.

[`thumbnailURL`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/thumbnailURL)

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

[`title`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/title)

The title of the item.

[`domainIdentifier`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/domainIdentifier)

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

[`weakRelatedUniqueIdentifier`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/weakRelatedUniqueIdentifier)

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

### Describing document content

[`audiences`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/audiences)

A class of entity for which the item is intended or useful.

[`contentDescription`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentDescription)

A description of the item’s content.

[`creator`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/creator)

The name of the app that created the content.

[`encodingApplications`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/encodingApplications)

The name of the apps that converted the original content into a PDF stream.

[`fileSize`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/fileSize)

The size of the document file.

[`fontNames`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/fontNames)

An array of font names the document uses.

[`identifier`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/identifier)

A formal identifier that references the document the item represents.

[`kind`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/kind)

A description of the kind of document the item represents.

[`pageCount`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pageCount)

The number of pages in the document.

[`pageHeight`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pageHeight)

The height of the document page, in points (72 points per inch).

[`pageWidth`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pageWidth)

The width of the document page, in points (72 points per inch).

[`securityMethod`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/securityMethod)

The security method (a type of encryption) that protects the document file.

[`subject`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/subject)

The subject of the document.

[`theme`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/theme)

The theme of the document.

### Describing user involvement

[`userCreated`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/userCreated)

A value that indicates the user created the item.

[`userCurated`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/userCurated)

A value that indicates the user selected the item.

[`userOwned`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/userOwned)

A value that indicates the user purchased or owns the item.

### Describing events

[`allDay`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/allDay)

A value that indicates if the event covers an entire day.

[`completionDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/completionDate)

The date on which the item was completed.

[`dueDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/dueDate)

The date on which the item is due.

[`endDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/endDate)

The end date for the item.

[`importantDates`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/importantDates)

An array of important dates associated with the item.

[`startDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/startDate)

The start date for the item.

### Describing places

[`altitude`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/altitude)

The altitude of the item in meters above sea level, expressed using the WGS84 datum.

[`city`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/city)

The city of the item’s origin according to guidelines that the provider establishes.

[`country`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/country)

The full, publishable name of the country or region in which the intellectual property of the item was created, according to guidelines the provider establishes.

[`GPSAreaInformation`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsAreaInformation)

Information about the GPS area.

[`GPSDOP`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsdop)

The GPS dilution of precision value.

[`GPSDateStamp`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDateStamp)

The date and time related to the GPS value.

[`GPSDestBearing`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDestBearing)

The bearing to the destination point.

[`GPSDestDistance`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDestDistance)

The distance to the destination point.

[`GPSDestLatitude`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDestLatitude)

The latitude of the destination point.

[`GPSDestLongitude`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDestLongitude)

The longitude of the destination point.

[`GPSDifferental`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDifferental)

The differential correction applied to the GPS receiver.

[`GPSMapDatum`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsMapDatum)

The geodetic data that the GPS receiver uses.

[`GPSMeasureMode`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsMeasureMode)

The measurement precision mode in use by the GPS receiver.

[`GPSProcessingMethod`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsProcessingMethod)

The location finding method that the GPS receiver uses.

[`GPSStatus`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsStatus)

The status of the GPS receiver.

[`GPSTrack`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsTrack)

The direction of travel of the item in degrees from true north.

[`headline`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/headline)

A publishable string that provides a synopsis of the contents of the item.

[`imageDirection`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/imageDirection)

The direction of the item’s image in degrees from true north.

[`instructions`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/instructions)

Instructions that concern the use of the item, such as an embargo or warning.

[`latitude`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/latitude)

The latitude of the item, in degrees north of the equator, expressed using the WGS84 datum.

[`longitude`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/longitude)

The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum.

[`namedLocation`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/namedLocation)

The name of the location or point of interest associated with the item.

[`speed`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/speed)

The speed of the item, in kilometers per hour.

[`stateOrProvince`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/stateOrProvince)

The province or state of origin according to guidelines the provider establishes.

[`timestamp`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/timestamp)

The timestamp on the item.

[`fullyFormattedAddress`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/fullyFormattedAddress)

The fully formatted address of the item, received from MapKit.

[`postalCode`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/postalCode)

The postal code for the item according to guidelines the provider establishes.

[`subThoroughfare`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/subThoroughfare)

The sublocation, such as a street number, for the item according to guidelines the provider establishes.

[`thoroughfare`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/thoroughfare)

The thoroughfare, such as a street name, associated with the location for the item according to guidelines the provider establishes.

### Describing media

[`comment`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/comment)

A comment related to the media file.

[`contentCreationDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentCreationDate)

The creation date of an edited or optimized version of the song or composition.

[`contentModificationDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentModificationDate)

The date on which the contents of the file was last modified.

[`contentSources`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentSources)

An array of sources from which the media was obtained.

[`copyright`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/copyright)

The copyright date of the content.

[`downloadedDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/downloadedDate)

The most recent date on which the file was downloaded or received.

[`editors`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/editors)

A list of editors who have worked on the file.

[`lastUsedDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/lastUsedDate)

The date on which the file was last used.

[`participants`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/participants)

A list of people who are visible in an image or movie or written about in a document.

[`projects`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/projects)

A list of projects of which this file is a part.

[`addedDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/addedDate)

The date on which the item was moved into its current location.

[`codecs`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/codecs)

The codecs used to encode/decode the media.

[`contactKeywords`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contactKeywords)

A list of contacts who are associated with the content in some way, not including the author.

[`deliveryType`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/deliveryType)

The delivery type of the file.

[`duration`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/duration)

The duration (if appropriate) of the content of the file, in seconds.

[`mediaTypes`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/mediaTypes)

The media types present in the content.

[`organizations`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/organizations)

A list of companies or organizations that created the content.

[`streamable`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/streamable)

A value that indicates if the content is prepared for streaming.

[`totalBitRate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/totalBitRate)

The total bit rate of the media, combining audio and video.

[`audioBitRate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/audioBitRate)

The audio bit rate of the media.

[`version`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/version)

A version string associated with the file.

[`videoBitRate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/videoBitRate)

The video bit rate of the media.

[`contributors`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contributors)

A list of people, organizations, or services that made contributions to the media content.

[`languages`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/languages)

A list of the included languages for the intellectual content of the media.

[`publishers`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/publishers)

A list of people, organizations, services, or other entities responsible for making the media available.

[`rights`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/rights)

A link to information about the rights held in and over the media.

[`role`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/role)

Indicates the role of the content creator.

[`contentRating`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentRating)

A value that indicates if the media contains explicit content.

[`coverage`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/coverage)

A list of descriptors that specify the extent or scope of the media.

[`director`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/director)

The name of the director of the media (for example, a movie director).

[`genre`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/genre)

The genre of the media.

[`information`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/information)

Information about the media.

[`local`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/local)

A value that indicates if the media is local.

[`originalFormat`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/originalFormat)

The original format of the media.

[`originalSource`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/originalSource)

The original source of the media.

[`performers`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/performers)

A list of performers in the media.

[`playCount`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/playCount)

A user-supplied play count for the media.

[`producer`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/producer)

The producer of the content.

[`rating`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/rating)

The user-supplied rating of the media.

[`ratingDescription`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/ratingDescription)

A description of the rating.

[`URL`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/url)

The URL associated with the media.

### Describing music

[`album`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/album)

The title for a collection of audio media.

[`artist`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/artist)

The artist associated with the media.

[`audioChannelCount`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/audioChannelCount)

The number of channels in the audio data that the file contains.

[`audioEncodingApplication`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/audioEncodingApplication)

The name of the application that encoded the data the audio file contains.

[`audioSampleRate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/audioSampleRate)

The sample rate of the audio data the file contains, as a float value representing Hz (audio frames per second), such as 44100.0 or 22254.54.

[`audioTrackNumber`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/audioTrackNumber)

The track number of a song or audio composition when part of an album.

[`composer`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/composer)

The composer of the song or audio composition that the audio file contains.

[`keySignature`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/keySignature)

The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m.

[`lyricist`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/lyricist)

The lyricist or text writer for the song or audio composition that the file contains.

[`musicalGenre`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/musicalGenre)

The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical.

[`recordingDate`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/recordingDate)

The recording date of the song or composition.

[`tempo`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/tempo)

The tempo of the music that the audio file contains, in beats per minute.

[`timeSignature`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/timeSignature)

The time signature of the musical composition that the audio or MIDI file contains, in a string, such as “4/4” or “7/8”.

[`generalMIDISequence`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/generalMIDISequence)

A value that indicates whether the MIDI sequence the file contains is set up for use with a general MIDI device.

[`musicalInstrumentCategory`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/musicalInstrumentCategory)

The category of the instrument associated with the audio file.

[`musicalInstrumentName`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/musicalInstrumentName)

The name of an instrument within the context of an instrument category.

### Describing images

[`ISOSpeed`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/isoSpeed)

The ISO speed setting at the time the camera captured the image.

[`acquisitionMake`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/acquisitionMake)

The manufacturer of the device that captured the image.

[`acquisitionModel`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/acquisitionModel)

The model of the device that captured the image.

[`aperture`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/aperture)

The size of the lens aperture at the time the camera captured the image, as a log-scale APEX value.

[`bitsPerSample`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/bitsPerSample)

The number of bits per sample.

[`cameraOwner`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/cameraOwner)

The owner of the camera that captured the image.

[`colorSpace`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/colorSpace)

The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr.

[`flashOn`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/flashOn)

A value that indicates if the camera used a flash to capture the image.

[`focalLength`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/focalLength)

The actual focal length of the lens, in millimeters.

[`focalLength35mm`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/focalLength35mm)

A value that indicates if the focal length is 35mm.

[`layerNames`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/layerNames)

An array that contains the names of the various layers in the file.

[`lensModel`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/lensModel)

The model of the lens that captured the image.

[`orientation`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/orientation)

The orientation of the data.

[`pixelCount`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pixelCount)

The total number of pixels in the image.

[`pixelHeight`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pixelHeight)

The height of the item, such as image or video frame height, in pixels.

[`pixelWidth`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pixelWidth)

The width of the item, such as image or video frame width, in pixels.

[`whiteBalance`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/whiteBalance)

The white balance setting when the camera captured the image.

[`EXIFGPSVersion`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exifgpsVersion)

The version of GPS Info IFD header that was used to generate the metadata for the image.

[`EXIFVersion`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exifVersion)

The version of the EXIF header that was used to generate the metadata for the image.

[`exposureMode`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exposureMode)

The mode the camera used for the exposure of the image.

[`exposureProgram`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exposureProgram)

The class of the program the camera used to set exposure when capturing the image.

[`exposureTime`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exposureTime)

The time that the lens was open during exposure, in seconds.

[`exposureTimeString`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exposureTimeString)

The time that the lens was open during exposure, in a string, such as “1/250 seconds”.

[`fNumber`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/fNumber)

The focal length of the lens, divided by the diameter of the aperture when the camera captured the image.

[`hasAlphaChannel`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/hasAlphaChannel)

Indicates if the image file has an alpha channel.

[`maxAperture`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/maxAperture)

The smallest F number of the lens.

[`meteringMode`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/meteringMode)

The metering mode.

[`profileName`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/profileName)

The name of the color profile the camera used for the image.

[`redEyeOn`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/redEyeOn)

A value that indicates if the camera used red-eye reduction when capturing the image.

[`resolutionHeightDPI`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/resolutionHeightDPI)

The resolution height of the image, in DPI.

[`resolutionWidthDPI`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/resolutionWidthDPI)

The resolution width of the image, in DPI.

### Describing messages

[Common Mailbox Identifiers](/documentation/CoreSpotlight/common-mailbox-identifiers)

Constants that describe common mailbox names.

[`HTMLContentData`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/htmlContentData)

The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string.

[`accountHandles`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/accountHandles)

An array of the canonical handles for the account with which the message is associated.

[`accountIdentifier`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/accountIdentifier)

The unique identifier for the account with which the message is associated, if any.

[`additionalRecipients`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/additionalRecipients)

An array of [`CSPerson`](/documentation/CoreSpotlight/CSPerson) objects representing the content of the Cc: field in an email message.

[`authorAddresses`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/authorAddresses)

An array of addresses associated with the author of the message.

[`authorEmailAddresses`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/authorEmailAddresses)

An array of email addresses associated with the author of the message.

[`authorNames`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/authorNames)

An array of names representing the authors who have worked on the message.

[`authors`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/authors)

An array of [`CSPerson`](/documentation/CoreSpotlight/CSPerson) objects representing the content of the From: field in an item.

[`emailAddresses`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/emailAddresses)

An array of email addresses associated with the message.

[`emailHeaders`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/emailHeaders)

A dictionary that contains all the headers of the message.

[`hiddenAdditionalRecipients`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/hiddenAdditionalRecipients)

An array of [`CSPerson`](/documentation/CoreSpotlight/CSPerson) objects representing the content of the Bcc: field in an email message.

[`instantMessageAddresses`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/instantMessageAddresses)

An array of instant message addresses for the message.

[`likelyJunk`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/likelyJunk)

A value that indicates if the message is likely to be considered junk.

[`mailboxIdentifiers`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/mailboxIdentifiers)

An array of mailbox identifiers associated with the message.

[`phoneNumbers`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/phoneNumbers)

An array of phone numbers associated with the message.

[`primaryRecipients`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/primaryRecipients)

An array of [`CSPerson`](/documentation/CoreSpotlight/CSPerson) objects representing the content of the To: field in an email message.

[`recipientAddresses`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/recipientAddresses)

An array of addresses associated with the recipients of the message.

[`recipientEmailAddresses`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/recipientEmailAddresses)

An array of email addresses associated with the recipient.

[`recipientNames`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/recipientNames)

An array of names representing the recipients of this message.

[`textContent`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/textContent)

The textual content of the message.

### Describing containment

[`containerDisplayName`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/containerDisplayName)

A localized string that specifies the name of a container to which the item belongs, suitable to display in the user interface.

[`containerIdentifier`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/containerIdentifier)

The identifier of the container to which the item belongs.

[`containerOrder`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/containerOrder)

The order of the item within the container.

[`containerTitle`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/containerTitle)

The title of the container to which the item belongs.

### Describing supporting actions

[`actionIdentifiers`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/actionIdentifiers)

The identifiers that specify custom actions the app supports for the item.

[`supportsNavigation`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/supportsNavigation)

A value that indicates whether the item contains information sufficient to provide navigation to the location it represents.

[`supportsPhoneCall`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/supportsPhoneCall)

A value that indicates whether the item contains information sufficient to allow a phone call to a number associated with the item.

[`sharedItemContentType`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/sharedItemContentType)

The file type of the item to enable the user to share items from Spotlight.

[`CSActionIdentifier`](/documentation/CoreSpotlight/CSActionIdentifier)

A key that specifies the action’s identifier in a user activity.

### Deprecated

[`-  initWithItemContentType:`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/init(itemContentType:))

Creates an attribute set for the specified content type.

## Relationships

### Conforms To

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.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)