Documentation
¶
Overview ¶
Package corespotlight provides Go bindings for the CoreSpotlight framework.
Add search capabilities to your app, and index your content so people can find it from Spotlight and Safari.
Help people access activities and items within your app by adding details about those items to a Core Spotlight index. The framework provides APIs to add your content to an index, and search for items in that index. You decide what content makes sense to index, but typically you index anything that someone might look for in your app. For example, you might index photos, contacts, the items someone purchased, or data they see in your interface. You can then use Core Spotlight to search for your indexed content and display those results in your app.
Essentials ¶
- Adding your app’s content to Spotlight indexes: Create a description for your app’s content and add it to a Spotlight index to make it searchable.
Searchable items ¶
- CSSearchableItem: The details of your app-specific content that someone might search for on their devices.
- CSSearchableItemAttributeSet: The detailed metadata for a searchable item.
- CSCustomAttributeKey: A key associated with a custom attribute for a searchable item.
- CSLocalizedString: An object that displays localized text in search results related to your app.
- CSPerson: An object that represents a person in the context of search results.
Indexes ¶
- Generating summary and priority data for indexed items: Summarize mail, message, and audio transcripts or assess the priority of mail and messages using Spotlight and Apple Intelligence.
- CSSearchableIndex: An on-device index for your app’s searchable content. (CSSearchableIndexDelegate)
- CSSearchableIndexDelegate: A protocol that defines methods a delegate object or app extension uses to handle communication from the on-device index.
Spotlight app extensions ¶
- Regenerating your app’s indexes on demand: Create an app extension to maintain your app’s indexes and regenerate them as needed.
- CSIndexExtensionRequestHandler: An interface that implements an index-maintenance app extension.
- CSImportExtension: An object that provides searchable attributes for file types that the app supports.
Queries ¶
- Building a search interface for your app: Add a search interface to your app to execute Spotlight queries and offer suggested text completions.
- Searching for information in your app: Search for app-specific content and refine search results using predicates and filters.
- CSUserQuery: A type you use to initiate searches from your interface and offer suggested text completions.
- CSUserQueryContext: The configuration details to apply to a user query.
- CSSearchQuery: A type you use to programmatically search the indexed app content.
- CSSearchQueryContext: The behavior configuration to use for a search query.
- CSSuggestion: The kind of suggestion to use in a query.
Errors ¶
- CSIndex Errors: Index error codes and error domain.
- CSSearchQuery Errors: Search query error codes and error domain.
Version ¶
- CoreSpotlightVersionNumber: The project version number for Core Spotlight.
- CoreSpotlightVersionString: The project version string for Core Spotlight.
Variables ¶
Key Types ¶
- CSSearchableItemAttributeSet - The detailed metadata for a searchable item.
- CSSearchableIndex - An on-device index for your app’s searchable content.
- CSUserQuery - A type you use to initiate searches from your interface and offer suggested text completions.
- CSIndexExtensionRequestHandler - An interface that implements an index-maintenance app extension.
- CSSearchQuery - A type you use to programmatically search the indexed app content.
- CSSearchableItem - The details of your app-specific content that someone might search for on their devices.
- CSCustomAttributeKey - A key associated with a custom attribute for a searchable item.
- CSUserQueryContext - The configuration details to apply to a user query.
- CSPerson - An object that represents a person in the context of search results.
- CSSearchQueryContext - The behavior configuration to use for a search query.
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Variables
- func NewCSSearchableItemArrayBlock(handler CSSearchableItemArrayHandler) (objc.ID, func())
- func NewCSSuggestionArrayBlock(handler CSSuggestionArrayHandler) (objc.ID, func())
- func NewDataErrorBlock(handler DataErrorHandler) (objc.ID, func())
- func NewErrorBlock(handler ErrorHandler) (objc.ID, func())
- func NewVoidBlock(handler VoidHandler) (objc.ID, func())
- type CSCustomAttributeKey
- func CSCustomAttributeKeyFromID(id objc.ID) CSCustomAttributeKey
- func NewCSCustomAttributeKey() CSCustomAttributeKey
- func NewCSCustomAttributeKeyWithCoder(coder foundation.INSCoder) CSCustomAttributeKey
- func NewCSCustomAttributeKeyWithKeyName(keyName string) CSCustomAttributeKey
- func NewCSCustomAttributeKeyWithKeyNameSearchableSearchableByDefaultUniqueMultiValued(keyName string, searchable bool, searchableByDefault bool, unique bool, ...) CSCustomAttributeKey
- func (c CSCustomAttributeKey) Autorelease() CSCustomAttributeKey
- func (c CSCustomAttributeKey) EncodeWithCoder(coder foundation.INSCoder)
- func (c CSCustomAttributeKey) Init() CSCustomAttributeKey
- func (c CSCustomAttributeKey) InitWithCoder(coder foundation.INSCoder) CSCustomAttributeKey
- func (c CSCustomAttributeKey) InitWithKeyName(keyName string) CSCustomAttributeKey
- func (c CSCustomAttributeKey) InitWithKeyNameSearchableSearchableByDefaultUniqueMultiValued(keyName string, searchable bool, searchableByDefault bool, unique bool, ...) CSCustomAttributeKey
- func (c CSCustomAttributeKey) IsMultiValued() bool
- func (c CSCustomAttributeKey) IsSearchable() bool
- func (c CSCustomAttributeKey) IsSearchableByDefault() bool
- func (c CSCustomAttributeKey) IsUnique() bool
- func (c CSCustomAttributeKey) KeyName() string
- type CSCustomAttributeKeyClass
- type CSImportExtension
- type CSImportExtensionClass
- type CSIndexErrorCode
- type CSIndexExtensionRequestHandler
- func (c CSIndexExtensionRequestHandler) Autorelease() CSIndexExtensionRequestHandler
- func (c CSIndexExtensionRequestHandler) DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex ICSSearchableIndex, itemIdentifier string, ...) (foundation.NSData, error)
- func (c CSIndexExtensionRequestHandler) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex ICSSearchableIndex, itemIdentifier string, ...) (foundation.NSURL, error)
- func (c CSIndexExtensionRequestHandler) Init() CSIndexExtensionRequestHandler
- func (c CSIndexExtensionRequestHandler) SearchableIndexDidFinishThrottle(searchableIndex ICSSearchableIndex)
- func (c CSIndexExtensionRequestHandler) SearchableIndexDidThrottle(searchableIndex ICSSearchableIndex)
- func (c CSIndexExtensionRequestHandler) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex ICSSearchableIndex, acknowledgementHandler VoidHandler)
- func (c CSIndexExtensionRequestHandler) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandlerSync(ctx context.Context, searchableIndex ICSSearchableIndex) error
- func (c CSIndexExtensionRequestHandler) SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex ICSSearchableIndex, identifiers []string, ...)
- func (c CSIndexExtensionRequestHandler) SearchableItemsDidUpdate(items []CSSearchableItem)
- func (c CSIndexExtensionRequestHandler) SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler(identifiers []string, protectionClass foundation.NSFileProtectionType, ...)
- func (c CSIndexExtensionRequestHandler) SearchableItemsForIdentifiersSearchableItemsHandler(identifiers []string, searchableItemsHandler CSSearchableItemArrayHandler)
- type CSIndexExtensionRequestHandlerClass
- type CSLocalizedString
- type CSLocalizedStringClass
- type CSPerson
- func (c CSPerson) Autorelease() CSPerson
- func (c CSPerson) ContactIdentifier() string
- func (c CSPerson) DisplayName() string
- func (c CSPerson) EncodeWithCoder(coder foundation.INSCoder)
- func (c CSPerson) HandleIdentifier() string
- func (c CSPerson) Handles() []string
- func (c CSPerson) Init() CSPerson
- func (c CSPerson) InitWithCoder(coder foundation.INSCoder) CSPerson
- func (c CSPerson) InitWithDisplayNameHandlesHandleIdentifier(displayName string, handles []string, handleIdentifier string) CSPerson
- func (c CSPerson) SetContactIdentifier(value string)
- type CSPersonClass
- type CSSearchQuery
- func (c CSSearchQuery) Autorelease() CSSearchQuery
- func (c CSSearchQuery) Cancel()
- func (c CSSearchQuery) CompletionHandler() ErrorHandler
- func (c CSSearchQuery) FoundItemCount() uint
- func (c CSSearchQuery) FoundItemsHandler() CSSearchableItemArrayHandler
- func (c CSSearchQuery) Init() CSSearchQuery
- func (c CSSearchQuery) InitWithQueryStringQueryContext(queryString string, queryContext ICSSearchQueryContext) CSSearchQuery
- func (c CSSearchQuery) IsCancelled() bool
- func (c CSSearchQuery) ProtectionClasses() []string
- func (c CSSearchQuery) Results() unsafe.Pointer
- func (c CSSearchQuery) SetCompletionHandler(value ErrorHandler)
- func (c CSSearchQuery) SetFoundItemsHandler(value CSSearchableItemArrayHandler)
- func (c CSSearchQuery) SetProtectionClasses(value []string)
- func (c CSSearchQuery) SetResults(value unsafe.Pointer)
- func (c CSSearchQuery) Start()
- type CSSearchQueryClass
- type CSSearchQueryContext
- func (c CSSearchQueryContext) Autorelease() CSSearchQueryContext
- func (c CSSearchQueryContext) EncodeWithCoder(coder foundation.INSCoder)
- func (c CSSearchQueryContext) FetchAttributes() []string
- func (c CSSearchQueryContext) FilterQueries() []string
- func (c CSSearchQueryContext) Init() CSSearchQueryContext
- func (c CSSearchQueryContext) InitWithCoder(coder foundation.INSCoder) CSSearchQueryContext
- func (c CSSearchQueryContext) KeyboardLanguage() string
- func (c CSSearchQueryContext) SetFetchAttributes(value []string)
- func (c CSSearchQueryContext) SetFilterQueries(value []string)
- func (c CSSearchQueryContext) SetKeyboardLanguage(value string)
- func (c CSSearchQueryContext) SetSourceOptions(value CSSearchQuerySourceOptions)
- func (c CSSearchQueryContext) SourceOptions() CSSearchQuerySourceOptions
- type CSSearchQueryContextClass
- type CSSearchQueryErrorCode
- type CSSearchQuerySourceOptions
- type CSSearchableIndex
- func (c CSSearchableIndex) Autorelease() CSSearchableIndex
- func (c CSSearchableIndex) BeginIndexBatch()
- func (c CSSearchableIndex) DeleteAllSearchableItems(ctx context.Context) error
- func (c CSSearchableIndex) DeleteAllSearchableItemsWithCompletionHandler(completionHandler ErrorHandler)
- func (c CSSearchableIndex) DeleteSearchableItemsWithDomainIdentifiersCompletionHandler(domainIdentifiers []string, completionHandler ErrorHandler)
- func (c CSSearchableIndex) DeleteSearchableItemsWithIdentifiersCompletionHandler(identifiers []string, completionHandler ErrorHandler)
- func (c CSSearchableIndex) EndIndexBatchWithClientState(ctx context.Context, clientState foundation.NSData) error
- func (c CSSearchableIndex) EndIndexBatchWithClientStateCompletionHandler(clientState foundation.NSData, completionHandler ErrorHandler)
- func (c CSSearchableIndex) EndIndexBatchWithExpectedClientStateNewClientState(ctx context.Context, expectedClientState foundation.NSData, ...) error
- func (c CSSearchableIndex) EndIndexBatchWithExpectedClientStateNewClientStateCompletionHandler(expectedClientState foundation.NSData, newClientState foundation.NSData, ...)
- func (c CSSearchableIndex) FetchDataForBundleIdentifierItemIdentifierContentType(ctx context.Context, bundleIdentifier string, itemIdentifier string, ...) (*foundation.NSData, error)
- func (c CSSearchableIndex) FetchDataForBundleIdentifierItemIdentifierContentTypeCompletionHandler(bundleIdentifier string, itemIdentifier string, ...)
- func (c CSSearchableIndex) FetchLastClientState(ctx context.Context) (*foundation.NSData, error)
- func (c CSSearchableIndex) FetchLastClientStateWithCompletionHandler(completionHandler DataErrorHandler)
- func (c CSSearchableIndex) IndexDelegate() CSSearchableIndexDelegate
- func (c CSSearchableIndex) IndexSearchableItemsCompletionHandler(items []CSSearchableItem, completionHandler ErrorHandler)
- func (c CSSearchableIndex) Init() CSSearchableIndex
- func (c CSSearchableIndex) InitWithName(name string) CSSearchableIndex
- func (c CSSearchableIndex) InitWithNameProtectionClass(name string, protectionClass foundation.NSFileProtectionType) CSSearchableIndex
- func (c CSSearchableIndex) ProtectionClass() foundation.NSFileProtectionType
- func (c CSSearchableIndex) SetIndexDelegate(value CSSearchableIndexDelegate)
- type CSSearchableIndexClass
- type CSSearchableIndexDelegate
- type CSSearchableIndexDelegateConfig
- type CSSearchableIndexDelegateObject
- func (o CSSearchableIndexDelegateObject) BaseObject() objectivec.Object
- func (o CSSearchableIndexDelegateObject) DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex ICSSearchableIndex, itemIdentifier string, ...) (foundation.NSData, error)
- func (o CSSearchableIndexDelegateObject) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex ICSSearchableIndex, itemIdentifier string, ...) (foundation.NSURL, error)
- func (o CSSearchableIndexDelegateObject) SearchableIndexDidFinishThrottle(searchableIndex ICSSearchableIndex)
- func (o CSSearchableIndexDelegateObject) SearchableIndexDidThrottle(searchableIndex ICSSearchableIndex)
- func (o CSSearchableIndexDelegateObject) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex ICSSearchableIndex, acknowledgementHandler VoidHandler)
- func (o CSSearchableIndexDelegateObject) SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex ICSSearchableIndex, identifiers []string, ...)
- func (o CSSearchableIndexDelegateObject) SearchableItemsDidUpdate(items []CSSearchableItem)
- func (o CSSearchableIndexDelegateObject) SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler(identifiers []string, protectionClass foundation.NSFileProtectionType, ...)
- func (o CSSearchableIndexDelegateObject) SearchableItemsForIdentifiersSearchableItemsHandler(identifiers []string, searchableItemsHandler CSSearchableItemArrayHandler)
- type CSSearchableItem
- func CSSearchableItemFromID(id objc.ID) CSSearchableItem
- func NewCSSearchableItem() CSSearchableItem
- func NewCSSearchableItemWithCoder(coder foundation.INSCoder) CSSearchableItem
- func NewCSSearchableItemWithUniqueIdentifierDomainIdentifierAttributeSet(uniqueIdentifier string, domainIdentifier string, ...) CSSearchableItem
- func (c CSSearchableItem) AttributeSet() ICSSearchableItemAttributeSet
- func (c CSSearchableItem) Autorelease() CSSearchableItem
- func (c CSSearchableItem) CompareByRank(other ICSSearchableItem) foundation.ComparisonResult
- func (c CSSearchableItem) DomainIdentifier() string
- func (c CSSearchableItem) EncodeWithCoder(coder foundation.INSCoder)
- func (c CSSearchableItem) ExpirationDate() foundation.NSDate
- func (c CSSearchableItem) Init() CSSearchableItem
- func (c CSSearchableItem) InitWithCoder(coder foundation.INSCoder) CSSearchableItem
- func (c CSSearchableItem) InitWithUniqueIdentifierDomainIdentifierAttributeSet(uniqueIdentifier string, domainIdentifier string, ...) CSSearchableItem
- func (c CSSearchableItem) IsUpdate() bool
- func (c CSSearchableItem) SetAttributeSet(value ICSSearchableItemAttributeSet)
- func (c CSSearchableItem) SetDomainIdentifier(value string)
- func (c CSSearchableItem) SetExpirationDate(value foundation.NSDate)
- func (c CSSearchableItem) SetIsUpdate(value bool)
- func (c CSSearchableItem) SetUniqueIdentifier(value string)
- func (c CSSearchableItem) SetUpdateListenerOptions(value CSSearchableItemUpdateListenerOptions)
- func (c CSSearchableItem) UniqueIdentifier() string
- func (c CSSearchableItem) UpdateListenerOptions() CSSearchableItemUpdateListenerOptions
- type CSSearchableItemArrayHandler
- type CSSearchableItemAttributeSet
- func CSSearchableItemAttributeSetFromID(id objc.ID) CSSearchableItemAttributeSet
- func NewCSSearchableItemAttributeSet() CSSearchableItemAttributeSet
- func NewCSSearchableItemAttributeSetWithCoder(coder foundation.INSCoder) CSSearchableItemAttributeSet
- func NewCSSearchableItemAttributeSetWithContentType(contentType uniformtypeidentifiers.UTType) CSSearchableItemAttributeSet
- func (c CSSearchableItemAttributeSet) AccountHandles() []string
- func (c CSSearchableItemAttributeSet) AccountIdentifier() string
- func (c CSSearchableItemAttributeSet) AcquisitionMake() string
- func (c CSSearchableItemAttributeSet) AcquisitionModel() string
- func (c CSSearchableItemAttributeSet) AddedDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) AdditionalRecipients() []CSPerson
- func (c CSSearchableItemAttributeSet) Album() string
- func (c CSSearchableItemAttributeSet) AllDay() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) AlternateNames() []string
- func (c CSSearchableItemAttributeSet) Altitude() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Aperture() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Artist() string
- func (c CSSearchableItemAttributeSet) Audiences() []string
- func (c CSSearchableItemAttributeSet) AudioBitRate() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) AudioChannelCount() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) AudioEncodingApplication() string
- func (c CSSearchableItemAttributeSet) AudioSampleRate() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) AudioTrackNumber() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) AuthorAddresses() []string
- func (c CSSearchableItemAttributeSet) AuthorEmailAddresses() []string
- func (c CSSearchableItemAttributeSet) AuthorNames() []string
- func (c CSSearchableItemAttributeSet) Authors() []CSPerson
- func (c CSSearchableItemAttributeSet) Autorelease() CSSearchableItemAttributeSet
- func (c CSSearchableItemAttributeSet) BitsPerSample() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) CameraOwner() string
- func (c CSSearchableItemAttributeSet) City() string
- func (c CSSearchableItemAttributeSet) Codecs() []string
- func (c CSSearchableItemAttributeSet) ColorSpace() string
- func (c CSSearchableItemAttributeSet) Comment() string
- func (c CSSearchableItemAttributeSet) CompletionDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) Composer() string
- func (c CSSearchableItemAttributeSet) ContactKeywords() []string
- func (c CSSearchableItemAttributeSet) ContainerDisplayName() string
- func (c CSSearchableItemAttributeSet) ContainerIdentifier() string
- func (c CSSearchableItemAttributeSet) ContainerOrder() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) ContainerTitle() string
- func (c CSSearchableItemAttributeSet) ContentCreationDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) ContentDescription() string
- func (c CSSearchableItemAttributeSet) ContentModificationDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) ContentRating() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) ContentSources() []string
- func (c CSSearchableItemAttributeSet) ContentType() string
- func (c CSSearchableItemAttributeSet) ContentTypeTree() []string
- func (c CSSearchableItemAttributeSet) ContentURL() foundation.NSURL
- func (c CSSearchableItemAttributeSet) Contributors() []string
- func (c CSSearchableItemAttributeSet) Copyright() string
- func (c CSSearchableItemAttributeSet) Country() string
- func (c CSSearchableItemAttributeSet) Coverage() []string
- func (c CSSearchableItemAttributeSet) Creator() string
- func (c CSSearchableItemAttributeSet) DarkThumbnailURL() foundation.NSURL
- func (c CSSearchableItemAttributeSet) DeliveryType() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Director() string
- func (c CSSearchableItemAttributeSet) DisplayName() string
- func (c CSSearchableItemAttributeSet) DomainIdentifier() string
- func (c CSSearchableItemAttributeSet) DownloadedDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) DueDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) Duration() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) EXIFGPSVersion() string
- func (c CSSearchableItemAttributeSet) EXIFVersion() string
- func (c CSSearchableItemAttributeSet) Editors() []string
- func (c CSSearchableItemAttributeSet) EmailAddresses() []string
- func (c CSSearchableItemAttributeSet) EmailHeaders() foundation.INSDictionary
- func (c CSSearchableItemAttributeSet) EncodeWithCoder(coder foundation.INSCoder)
- func (c CSSearchableItemAttributeSet) EncodingApplications() []string
- func (c CSSearchableItemAttributeSet) EndDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) ExposureMode() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) ExposureProgram() string
- func (c CSSearchableItemAttributeSet) ExposureTime() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) ExposureTimeString() string
- func (c CSSearchableItemAttributeSet) FNumber() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) FileSize() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) FlashOn() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) FocalLength() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) FocalLength35mm() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) FontNames() []string
- func (c CSSearchableItemAttributeSet) FullyFormattedAddress() string
- func (c CSSearchableItemAttributeSet) GPSAreaInformation() string
- func (c CSSearchableItemAttributeSet) GPSDOP() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) GPSDateStamp() foundation.NSDate
- func (c CSSearchableItemAttributeSet) GPSDestBearing() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) GPSDestDistance() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) GPSDestLatitude() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) GPSDestLongitude() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) GPSDifferental() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) GPSMapDatum() string
- func (c CSSearchableItemAttributeSet) GPSMeasureMode() string
- func (c CSSearchableItemAttributeSet) GPSProcessingMethod() string
- func (c CSSearchableItemAttributeSet) GPSStatus() string
- func (c CSSearchableItemAttributeSet) GPSTrack() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) GeneralMIDISequence() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Genre() string
- func (c CSSearchableItemAttributeSet) HTMLContentData() foundation.NSData
- func (c CSSearchableItemAttributeSet) HasAlphaChannel() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Headline() string
- func (c CSSearchableItemAttributeSet) HiddenAdditionalRecipients() []CSPerson
- func (c CSSearchableItemAttributeSet) ISOSpeed() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Identifier() string
- func (c CSSearchableItemAttributeSet) ImageDirection() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) ImportantDates() []foundation.NSDate
- func (c CSSearchableItemAttributeSet) Information() string
- func (c CSSearchableItemAttributeSet) Init() CSSearchableItemAttributeSet
- func (c CSSearchableItemAttributeSet) InitWithCoder(coder foundation.INSCoder) CSSearchableItemAttributeSet
- func (c CSSearchableItemAttributeSet) InitWithContentType(contentType uniformtypeidentifiers.UTType) CSSearchableItemAttributeSet
- func (c CSSearchableItemAttributeSet) InstantMessageAddresses() []string
- func (c CSSearchableItemAttributeSet) Instructions() string
- func (c CSSearchableItemAttributeSet) IsPriority() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) KeySignature() string
- func (c CSSearchableItemAttributeSet) Keywords() []string
- func (c CSSearchableItemAttributeSet) Kind() string
- func (c CSSearchableItemAttributeSet) Languages() []string
- func (c CSSearchableItemAttributeSet) LastUsedDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) Latitude() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) LayerNames() []string
- func (c CSSearchableItemAttributeSet) LensModel() string
- func (c CSSearchableItemAttributeSet) LikelyJunk() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Local() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Longitude() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Lyricist() string
- func (c CSSearchableItemAttributeSet) MailboxIdentifiers() []string
- func (c CSSearchableItemAttributeSet) MaxAperture() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) MediaTypes() []string
- func (c CSSearchableItemAttributeSet) MetadataModificationDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) MeteringMode() string
- func (c CSSearchableItemAttributeSet) MoveFrom(sourceAttributeSet ICSSearchableItemAttributeSet)
- func (c CSSearchableItemAttributeSet) MusicalGenre() string
- func (c CSSearchableItemAttributeSet) MusicalInstrumentCategory() string
- func (c CSSearchableItemAttributeSet) MusicalInstrumentName() string
- func (c CSSearchableItemAttributeSet) NamedLocation() string
- func (c CSSearchableItemAttributeSet) Organizations() []string
- func (c CSSearchableItemAttributeSet) Orientation() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) OriginalFormat() string
- func (c CSSearchableItemAttributeSet) OriginalSource() string
- func (c CSSearchableItemAttributeSet) PageCount() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) PageHeight() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) PageWidth() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Participants() []string
- func (c CSSearchableItemAttributeSet) Path() string
- func (c CSSearchableItemAttributeSet) Performers() []string
- func (c CSSearchableItemAttributeSet) PhoneNumbers() []string
- func (c CSSearchableItemAttributeSet) PixelCount() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) PixelHeight() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) PixelWidth() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) PlayCount() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) PostalCode() string
- func (c CSSearchableItemAttributeSet) PrimaryRecipients() []CSPerson
- func (c CSSearchableItemAttributeSet) Producer() string
- func (c CSSearchableItemAttributeSet) ProfileName() string
- func (c CSSearchableItemAttributeSet) Projects() []string
- func (c CSSearchableItemAttributeSet) ProviderDataTypeIdentifiers() []string
- func (c CSSearchableItemAttributeSet) ProviderFileTypeIdentifiers() []string
- func (c CSSearchableItemAttributeSet) ProviderInPlaceFileTypeIdentifiers() []string
- func (c CSSearchableItemAttributeSet) Publishers() []string
- func (c CSSearchableItemAttributeSet) RankingHint() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Rating() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) RatingDescription() string
- func (c CSSearchableItemAttributeSet) RecipientAddresses() []string
- func (c CSSearchableItemAttributeSet) RecipientEmailAddresses() []string
- func (c CSSearchableItemAttributeSet) RecipientNames() []string
- func (c CSSearchableItemAttributeSet) RecordingDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) RedEyeOn() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) RelatedUniqueIdentifier() string
- func (c CSSearchableItemAttributeSet) ResolutionHeightDPI() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) ResolutionWidthDPI() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Rights() string
- func (c CSSearchableItemAttributeSet) Role() string
- func (c CSSearchableItemAttributeSet) SecurityMethod() string
- func (c CSSearchableItemAttributeSet) SetAccountHandles(value []string)
- func (c CSSearchableItemAttributeSet) SetAccountIdentifier(value string)
- func (c CSSearchableItemAttributeSet) SetAcquisitionMake(value string)
- func (c CSSearchableItemAttributeSet) SetAcquisitionModel(value string)
- func (c CSSearchableItemAttributeSet) SetAddedDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetAdditionalRecipients(value []CSPerson)
- func (c CSSearchableItemAttributeSet) SetAlbum(value string)
- func (c CSSearchableItemAttributeSet) SetAllDay(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetAlternateNames(value []string)
- func (c CSSearchableItemAttributeSet) SetAltitude(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetAperture(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetArtist(value string)
- func (c CSSearchableItemAttributeSet) SetAudiences(value []string)
- func (c CSSearchableItemAttributeSet) SetAudioBitRate(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetAudioChannelCount(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetAudioEncodingApplication(value string)
- func (c CSSearchableItemAttributeSet) SetAudioSampleRate(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetAudioTrackNumber(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetAuthorAddresses(value []string)
- func (c CSSearchableItemAttributeSet) SetAuthorEmailAddresses(value []string)
- func (c CSSearchableItemAttributeSet) SetAuthorNames(value []string)
- func (c CSSearchableItemAttributeSet) SetAuthors(value []CSPerson)
- func (c CSSearchableItemAttributeSet) SetBitsPerSample(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetCameraOwner(value string)
- func (c CSSearchableItemAttributeSet) SetCity(value string)
- func (c CSSearchableItemAttributeSet) SetCodecs(value []string)
- func (c CSSearchableItemAttributeSet) SetColorSpace(value string)
- func (c CSSearchableItemAttributeSet) SetComment(value string)
- func (c CSSearchableItemAttributeSet) SetCompletionDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetComposer(value string)
- func (c CSSearchableItemAttributeSet) SetContactKeywords(value []string)
- func (c CSSearchableItemAttributeSet) SetContainerDisplayName(value string)
- func (c CSSearchableItemAttributeSet) SetContainerIdentifier(value string)
- func (c CSSearchableItemAttributeSet) SetContainerOrder(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetContainerTitle(value string)
- func (c CSSearchableItemAttributeSet) SetContentCreationDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetContentDescription(value string)
- func (c CSSearchableItemAttributeSet) SetContentModificationDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetContentRating(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetContentSources(value []string)
- func (c CSSearchableItemAttributeSet) SetContentType(value string)
- func (c CSSearchableItemAttributeSet) SetContentTypeTree(value []string)
- func (c CSSearchableItemAttributeSet) SetContentURL(value foundation.NSURL)
- func (c CSSearchableItemAttributeSet) SetContributors(value []string)
- func (c CSSearchableItemAttributeSet) SetCopyright(value string)
- func (c CSSearchableItemAttributeSet) SetCountry(value string)
- func (c CSSearchableItemAttributeSet) SetCoverage(value []string)
- func (c CSSearchableItemAttributeSet) SetCreator(value string)
- func (c CSSearchableItemAttributeSet) SetDarkThumbnailURL(value foundation.NSURL)
- func (c CSSearchableItemAttributeSet) SetDeliveryType(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetDirector(value string)
- func (c CSSearchableItemAttributeSet) SetDisplayName(value string)
- func (c CSSearchableItemAttributeSet) SetDomainIdentifier(value string)
- func (c CSSearchableItemAttributeSet) SetDownloadedDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetDueDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetDuration(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetEXIFGPSVersion(value string)
- func (c CSSearchableItemAttributeSet) SetEXIFVersion(value string)
- func (c CSSearchableItemAttributeSet) SetEditors(value []string)
- func (c CSSearchableItemAttributeSet) SetEmailAddresses(value []string)
- func (c CSSearchableItemAttributeSet) SetEmailHeaders(value foundation.INSDictionary)
- func (c CSSearchableItemAttributeSet) SetEncodingApplications(value []string)
- func (c CSSearchableItemAttributeSet) SetEndDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetExposureMode(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetExposureProgram(value string)
- func (c CSSearchableItemAttributeSet) SetExposureTime(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetExposureTimeString(value string)
- func (c CSSearchableItemAttributeSet) SetFNumber(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetFileSize(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetFlashOn(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetFocalLength(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetFocalLength35mm(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetFontNames(value []string)
- func (c CSSearchableItemAttributeSet) SetFullyFormattedAddress(value string)
- func (c CSSearchableItemAttributeSet) SetGPSAreaInformation(value string)
- func (c CSSearchableItemAttributeSet) SetGPSDOP(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetGPSDateStamp(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetGPSDestBearing(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetGPSDestDistance(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetGPSDestLatitude(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetGPSDestLongitude(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetGPSDifferental(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetGPSMapDatum(value string)
- func (c CSSearchableItemAttributeSet) SetGPSMeasureMode(value string)
- func (c CSSearchableItemAttributeSet) SetGPSProcessingMethod(value string)
- func (c CSSearchableItemAttributeSet) SetGPSStatus(value string)
- func (c CSSearchableItemAttributeSet) SetGPSTrack(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetGeneralMIDISequence(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetGenre(value string)
- func (c CSSearchableItemAttributeSet) SetHTMLContentData(value foundation.NSData)
- func (c CSSearchableItemAttributeSet) SetHasAlphaChannel(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetHeadline(value string)
- func (c CSSearchableItemAttributeSet) SetHiddenAdditionalRecipients(value []CSPerson)
- func (c CSSearchableItemAttributeSet) SetISOSpeed(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetIdentifier(value string)
- func (c CSSearchableItemAttributeSet) SetImageDirection(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetImportantDates(value []foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetInformation(value string)
- func (c CSSearchableItemAttributeSet) SetInstantMessageAddresses(value []string)
- func (c CSSearchableItemAttributeSet) SetInstructions(value string)
- func (c CSSearchableItemAttributeSet) SetKeySignature(value string)
- func (c CSSearchableItemAttributeSet) SetKeywords(value []string)
- func (c CSSearchableItemAttributeSet) SetKind(value string)
- func (c CSSearchableItemAttributeSet) SetLanguages(value []string)
- func (c CSSearchableItemAttributeSet) SetLastUsedDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetLatitude(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetLayerNames(value []string)
- func (c CSSearchableItemAttributeSet) SetLensModel(value string)
- func (c CSSearchableItemAttributeSet) SetLikelyJunk(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetLocal(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetLongitude(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetLyricist(value string)
- func (c CSSearchableItemAttributeSet) SetMailboxIdentifiers(value []string)
- func (c CSSearchableItemAttributeSet) SetMaxAperture(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetMediaTypes(value []string)
- func (c CSSearchableItemAttributeSet) SetMetadataModificationDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetMeteringMode(value string)
- func (c CSSearchableItemAttributeSet) SetMusicalGenre(value string)
- func (c CSSearchableItemAttributeSet) SetMusicalInstrumentCategory(value string)
- func (c CSSearchableItemAttributeSet) SetMusicalInstrumentName(value string)
- func (c CSSearchableItemAttributeSet) SetNamedLocation(value string)
- func (c CSSearchableItemAttributeSet) SetOrganizations(value []string)
- func (c CSSearchableItemAttributeSet) SetOrientation(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetOriginalFormat(value string)
- func (c CSSearchableItemAttributeSet) SetOriginalSource(value string)
- func (c CSSearchableItemAttributeSet) SetPageCount(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetPageHeight(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetPageWidth(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetParticipants(value []string)
- func (c CSSearchableItemAttributeSet) SetPath(value string)
- func (c CSSearchableItemAttributeSet) SetPerformers(value []string)
- func (c CSSearchableItemAttributeSet) SetPhoneNumbers(value []string)
- func (c CSSearchableItemAttributeSet) SetPixelCount(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetPixelHeight(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetPixelWidth(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetPlayCount(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetPostalCode(value string)
- func (c CSSearchableItemAttributeSet) SetPrimaryRecipients(value []CSPerson)
- func (c CSSearchableItemAttributeSet) SetProducer(value string)
- func (c CSSearchableItemAttributeSet) SetProfileName(value string)
- func (c CSSearchableItemAttributeSet) SetProjects(value []string)
- func (c CSSearchableItemAttributeSet) SetProviderDataTypeIdentifiers(value []string)
- func (c CSSearchableItemAttributeSet) SetProviderFileTypeIdentifiers(value []string)
- func (c CSSearchableItemAttributeSet) SetProviderInPlaceFileTypeIdentifiers(value []string)
- func (c CSSearchableItemAttributeSet) SetPublishers(value []string)
- func (c CSSearchableItemAttributeSet) SetRankingHint(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetRating(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetRatingDescription(value string)
- func (c CSSearchableItemAttributeSet) SetRecipientAddresses(value []string)
- func (c CSSearchableItemAttributeSet) SetRecipientEmailAddresses(value []string)
- func (c CSSearchableItemAttributeSet) SetRecipientNames(value []string)
- func (c CSSearchableItemAttributeSet) SetRecordingDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetRedEyeOn(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetRelatedUniqueIdentifier(value string)
- func (c CSSearchableItemAttributeSet) SetResolutionHeightDPI(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetResolutionWidthDPI(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetRights(value string)
- func (c CSSearchableItemAttributeSet) SetRole(value string)
- func (c CSSearchableItemAttributeSet) SetSecurityMethod(value string)
- func (c CSSearchableItemAttributeSet) SetSpeed(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetStartDate(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetStateOrProvince(value string)
- func (c CSSearchableItemAttributeSet) SetStreamable(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetSubThoroughfare(value string)
- func (c CSSearchableItemAttributeSet) SetSubject(value string)
- func (c CSSearchableItemAttributeSet) SetSupportsNavigation(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetSupportsPhoneCall(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetTempo(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetTextContent(value string)
- func (c CSSearchableItemAttributeSet) SetTheme(value string)
- func (c CSSearchableItemAttributeSet) SetThoroughfare(value string)
- func (c CSSearchableItemAttributeSet) SetThumbnailData(value foundation.NSData)
- func (c CSSearchableItemAttributeSet) SetThumbnailURL(value foundation.NSURL)
- func (c CSSearchableItemAttributeSet) SetTimeSignature(value string)
- func (c CSSearchableItemAttributeSet) SetTimestamp(value foundation.NSDate)
- func (c CSSearchableItemAttributeSet) SetTitle(value string)
- func (c CSSearchableItemAttributeSet) SetTotalBitRate(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetTranscribedTextContent(value string)
- func (c CSSearchableItemAttributeSet) SetURL(value foundation.NSURL)
- func (c CSSearchableItemAttributeSet) SetUserCreated(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetUserCurated(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetUserOwned(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetValueForCustomKey(value foundation.NSSecureCoding, key ICSCustomAttributeKey)
- func (c CSSearchableItemAttributeSet) SetVersion(value string)
- func (c CSSearchableItemAttributeSet) SetVideoBitRate(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) SetWeakRelatedUniqueIdentifier(value string)
- func (c CSSearchableItemAttributeSet) SetWhiteBalance(value foundation.NSNumber)
- func (c CSSearchableItemAttributeSet) Speed() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) StartDate() foundation.NSDate
- func (c CSSearchableItemAttributeSet) StateOrProvince() string
- func (c CSSearchableItemAttributeSet) Streamable() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) SubThoroughfare() string
- func (c CSSearchableItemAttributeSet) Subject() string
- func (c CSSearchableItemAttributeSet) SupportsNavigation() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) SupportsPhoneCall() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) Tempo() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) TextContent() string
- func (c CSSearchableItemAttributeSet) TextContentSummary() string
- func (c CSSearchableItemAttributeSet) Theme() string
- func (c CSSearchableItemAttributeSet) Thoroughfare() string
- func (c CSSearchableItemAttributeSet) ThumbnailData() foundation.NSData
- func (c CSSearchableItemAttributeSet) ThumbnailURL() foundation.NSURL
- func (c CSSearchableItemAttributeSet) TimeSignature() string
- func (c CSSearchableItemAttributeSet) Timestamp() foundation.NSDate
- func (c CSSearchableItemAttributeSet) Title() string
- func (c CSSearchableItemAttributeSet) TotalBitRate() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) TranscribedTextContent() string
- func (c CSSearchableItemAttributeSet) URL() foundation.NSURL
- func (c CSSearchableItemAttributeSet) UserCreated() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) UserCurated() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) UserOwned() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) ValueForCustomKey(key ICSCustomAttributeKey) foundation.NSSecureCoding
- func (c CSSearchableItemAttributeSet) Version() string
- func (c CSSearchableItemAttributeSet) VideoBitRate() foundation.NSNumber
- func (c CSSearchableItemAttributeSet) WeakRelatedUniqueIdentifier() string
- func (c CSSearchableItemAttributeSet) WhiteBalance() foundation.NSNumber
- type CSSearchableItemAttributeSetClass
- type CSSearchableItemClass
- type CSSearchableItemUpdateListenerOptions
- type CSSuggestion
- func (c CSSuggestion) Autorelease() CSSuggestion
- func (c CSSuggestion) Compare(other ICSSuggestion) foundation.ComparisonResult
- func (c CSSuggestion) CompareByRank(other ICSSuggestion) foundation.ComparisonResult
- func (c CSSuggestion) EncodeWithCoder(coder foundation.INSCoder)
- func (c CSSuggestion) Init() CSSuggestion
- func (c CSSuggestion) InitWithCoder(coder foundation.INSCoder) CSSuggestion
- func (c CSSuggestion) LocalizedAttributedSuggestion() foundation.NSAttributedString
- func (c CSSuggestion) SetLocalizedAttributedSuggestion(value foundation.NSAttributedString)
- func (c CSSuggestion) SuggestionKind() CSSuggestionKind
- type CSSuggestionArrayHandler
- type CSSuggestionClass
- type CSSuggestionKind
- type CSUserInteraction
- type CSUserQuery
- func CSUserQueryFromID(id objc.ID) CSUserQuery
- func NewCSUserQuery() CSUserQuery
- func NewCSUserQueryWithQueryStringQueryContext(queryString string, queryContext ICSSearchQueryContext) CSUserQuery
- func NewCSUserQueryWithUserQueryStringUserQueryContext(userQueryString string, userQueryContext ICSUserQueryContext) CSUserQuery
- func (c CSUserQuery) Autorelease() CSUserQuery
- func (c CSUserQuery) FoundSuggestionCount() int
- func (c CSUserQuery) FoundSuggestionsHandler() CSSuggestionArrayHandler
- func (c CSUserQuery) Init() CSUserQuery
- func (c CSUserQuery) InitWithUserQueryStringUserQueryContext(userQueryString string, userQueryContext ICSUserQueryContext) CSUserQuery
- func (c CSUserQuery) Responses() unsafe.Pointer
- func (c CSUserQuery) SetFoundSuggestionsHandler(value CSSuggestionArrayHandler)
- func (c CSUserQuery) SetResponses(value unsafe.Pointer)
- func (c CSUserQuery) SetSuggestions(value unsafe.Pointer)
- func (c CSUserQuery) Suggestions() unsafe.Pointer
- type CSUserQueryClass
- type CSUserQueryContext
- func (c CSUserQueryContext) Autorelease() CSUserQueryContext
- func (c CSUserQueryContext) DisableSemanticSearch() bool
- func (c CSUserQueryContext) EnableRankedResults() bool
- func (c CSUserQueryContext) Init() CSUserQueryContext
- func (c CSUserQueryContext) MaxRankedResultCount() int
- func (c CSUserQueryContext) MaxResultCount() int
- func (c CSUserQueryContext) MaxSuggestionCount() int
- func (c CSUserQueryContext) SetDisableSemanticSearch(value bool)
- func (c CSUserQueryContext) SetEnableRankedResults(value bool)
- func (c CSUserQueryContext) SetMaxRankedResultCount(value int)
- func (c CSUserQueryContext) SetMaxResultCount(value int)
- func (c CSUserQueryContext) SetMaxSuggestionCount(value int)
- type CSUserQueryContextClass
- type DataErrorHandler
- type ErrorHandler
- type ICSCustomAttributeKey
- type ICSImportExtension
- type ICSIndexExtensionRequestHandler
- type ICSLocalizedString
- type ICSPerson
- type ICSSearchQuery
- type ICSSearchQueryContext
- type ICSSearchableIndex
- type ICSSearchableItem
- type ICSSearchableItemAttributeSet
- type ICSSuggestion
- type ICSUserQuery
- type ICSUserQueryContext
- type VoidHandler
Constants ¶
This section is empty.
Variables ¶
var ( // CSIndexErrorDomain is the error domain for the index. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSIndexErrorDomain CSIndexErrorDomain string // CSMailboxArchive is an archive mailbox. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSMailboxArchive CSMailboxArchive string // CSMailboxDrafts is a drafts mailbox. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSMailboxDrafts CSMailboxDrafts string // CSMailboxInbox is an inbox. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSMailboxInbox CSMailboxInbox string // CSMailboxJunk is a junk mailbox. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSMailboxJunk CSMailboxJunk string // CSMailboxSent is a sent mailbox. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSMailboxSent CSMailboxSent string // CSMailboxTrash is a trash mailbox. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSMailboxTrash CSMailboxTrash string // CSQueryContinuationActionType is indicates that the activity type to continue is a search or query. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSQueryContinuationActionType CSQueryContinuationActionType string // CSSearchQueryString is provides the key for the current query in the info dictionary of the user activity object. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryString CSSearchQueryString string // CSSearchableItemActionType is indicates that the activity type to continue is related to a searchable item. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemActionType CSSearchableItemActionType string // CSSearchableItemActivityIdentifier is the key you use to access a searchable item in a user activity object. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemActivityIdentifier CSSearchableItemActivityIdentifier string )
var ( // CSSearchQueryErrorDomain is the error domain for search queries. // // See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryErrorDomain CSSearchQueryErrorDomain foundation.NSErrorDomain )
var ( // See: https://developer.apple.com/documentation/CoreSpotlight/CSSuggestionHighlightAttributeName CSSuggestionHighlightAttributeName foundation.NSAttributedStringKey )
var ( // CoreSpotlightVersionNumber is the project version number for Core Spotlight. // // See: https://developer.apple.com/documentation/CoreSpotlight/CoreSpotlightVersionNumber CoreSpotlightVersionNumber float64 )
var ( // CoreSpotlightVersionString is the project version string for Core Spotlight. // // See: https://developer.apple.com/documentation/CoreSpotlight/CoreSpotlightVersionString CoreSpotlightVersionString uint8 )
Functions ¶
func NewCSSearchableItemArrayBlock ¶
func NewCSSearchableItemArrayBlock(handler CSSearchableItemArrayHandler) (objc.ID, func())
NewCSSearchableItemArrayBlock wraps a Go CSSearchableItemArrayHandler as an Objective-C block. The caller must defer the returned cleanup function.
Used by:
- CSIndexExtensionRequestHandler.SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler
- CSIndexExtensionRequestHandler.SearchableItemsForIdentifiersSearchableItemsHandler
- [CSSearchableIndexDelegate.SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler]
- [CSSearchableIndexDelegate.SearchableItemsForIdentifiersSearchableItemsHandler]
func NewCSSuggestionArrayBlock ¶
func NewCSSuggestionArrayBlock(handler CSSuggestionArrayHandler) (objc.ID, func())
NewCSSuggestionArrayBlock wraps a Go CSSuggestionArrayHandler as an Objective-C block. The caller must defer the returned cleanup function.
func NewDataErrorBlock ¶
func NewDataErrorBlock(handler DataErrorHandler) (objc.ID, func())
NewDataErrorBlock wraps a Go DataErrorHandler as an Objective-C block. The caller must defer the returned cleanup function.
Used by:
func NewErrorBlock ¶
func NewErrorBlock(handler ErrorHandler) (objc.ID, func())
NewErrorBlock wraps a Go ErrorHandler as an Objective-C block. The caller must defer the returned cleanup function.
Used by:
- CSSearchableIndex.DeleteAllSearchableItemsWithCompletionHandler
- CSSearchableIndex.DeleteSearchableItemsWithDomainIdentifiersCompletionHandler
- CSSearchableIndex.DeleteSearchableItemsWithIdentifiersCompletionHandler
- CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler
- CSSearchableIndex.EndIndexBatchWithExpectedClientStateNewClientStateCompletionHandler
- CSSearchableIndex.IndexSearchableItemsCompletionHandler
func NewVoidBlock ¶
func NewVoidBlock(handler VoidHandler) (objc.ID, func())
NewVoidBlock wraps a Go VoidHandler as an Objective-C block. The caller must defer the returned cleanup function.
Used by:
- CSIndexExtensionRequestHandler.SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler
- CSIndexExtensionRequestHandler.SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler
- CSSearchableIndexDelegate.SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler
- CSSearchableIndexDelegate.SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler
Types ¶
type CSCustomAttributeKey ¶
type CSCustomAttributeKey struct {
objectivec.Object
}
A key associated with a custom attribute for a searchable item.
Overview ¶
The CSCustomAttributeKey class defines a key that you can associate with a custom attribute for a searchable item. Item attributes provide metadata about the item that can be indexed and displayed to users in search results.
Although the Core Spotlight framework provides several predefined attributes, such as title and description, you can create a CSCustomAttributeKey object to specify a custom attribute that makes sense in your domain.
Creating a custom attribute ¶
- CSCustomAttributeKey.InitWithKeyName: Returns a new custom attribute key with the specified name.
- CSCustomAttributeKey.InitWithKeyNameSearchableSearchableByDefaultUniqueMultiValued: Returns a new custom attribute key with the specified name and properties.
- CSCustomAttributeKey.InitWithCoder
Getting the attribute details ¶
- CSCustomAttributeKey.KeyName: The name of the custom attribute key.
- CSCustomAttributeKey.IsMultiValued: A Boolean value that indicates if the custom attribute is likely to have multiple values, such as arrays, associated with it.
- CSCustomAttributeKey.IsSearchable: A Boolean value that indicates if the custom attribute can be specified as a search term.
- CSCustomAttributeKey.IsSearchableByDefault: A Boolean value that indicates if the custom attribute should be searchable by default.
- CSCustomAttributeKey.IsUnique: A Boolean value that indicates if duplicate custom attribute values should be treated as the same value to save storage space.
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey
func CSCustomAttributeKeyFromID ¶
func CSCustomAttributeKeyFromID(id objc.ID) CSCustomAttributeKey
CSCustomAttributeKeyFromID constructs a CSCustomAttributeKey from an objc.ID.
A key associated with a custom attribute for a searchable item.
func NewCSCustomAttributeKey ¶
func NewCSCustomAttributeKey() CSCustomAttributeKey
NewCSCustomAttributeKey creates a new CSCustomAttributeKey instance.
func NewCSCustomAttributeKeyWithCoder ¶
func NewCSCustomAttributeKeyWithCoder(coder foundation.INSCoder) CSCustomAttributeKey
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey/init(coder:)
func NewCSCustomAttributeKeyWithKeyName ¶
func NewCSCustomAttributeKeyWithKeyName(keyName string) CSCustomAttributeKey
Returns a new custom attribute key with the specified name.
keyName: The name of the custom attribute for use as a key in a CSSearchableItemAttributeSet. The key name must be a string that contains only ASCII characters and no punctuation other than the underscore (that is “_”). The prefix `kMD` is reserved.
Return Value ¶
A new custom attribute key.
Discussion ¶
To create custom attribute key names, use a reverse DNS format that includes your company name and does not include the period character (”.”). For example, a key name of the form `com_mycompany_myapp_mykeyname` works well.
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey/init(keyName:)
func NewCSCustomAttributeKeyWithKeyNameSearchableSearchableByDefaultUniqueMultiValued ¶
func NewCSCustomAttributeKeyWithKeyNameSearchableSearchableByDefaultUniqueMultiValued(keyName string, searchable bool, searchableByDefault bool, unique bool, multiValued bool) CSCustomAttributeKey
Returns a new custom attribute key with the specified name and properties.
keyName: The name of the custom attribute for use as a key in a CSSearchableItemAttributeSet. The key name must be a string that contains only ASCII characters and no punctuation other than the underscore (that is, “_”). The prefix `kMD` is reserved.
searchable: A Boolean value that indicates if the attribute can be specified as a search term.
searchableByDefault: A Boolean value that indicates if the attribute should be searchable by default.
unique: A Boolean value that indicates if duplicate values should be treated as the same value to save storage space.
multiValued: A Boolean value that indicates if the attribute is likely to have multiple values, such as arrays, associated with it.
Return Value ¶
A new custom attribute key with the specified name and properties.
Discussion ¶
To create custom attribute key names, it’s recommended that you use a reverse DNS format that includes your company name and does not include the period character (”.”). For example, a key name of the form `com_mycompany_myapp_mykeyname` works well.
func (CSCustomAttributeKey) Autorelease ¶
func (c CSCustomAttributeKey) Autorelease() CSCustomAttributeKey
Autorelease adds the receiver to the current autorelease pool.
func (CSCustomAttributeKey) EncodeWithCoder ¶
func (c CSCustomAttributeKey) EncodeWithCoder(coder foundation.INSCoder)
func (CSCustomAttributeKey) Init ¶
func (c CSCustomAttributeKey) Init() CSCustomAttributeKey
Init initializes the instance.
func (CSCustomAttributeKey) InitWithCoder ¶
func (c CSCustomAttributeKey) InitWithCoder(coder foundation.INSCoder) CSCustomAttributeKey
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey/init(coder:)
func (CSCustomAttributeKey) InitWithKeyName ¶
func (c CSCustomAttributeKey) InitWithKeyName(keyName string) CSCustomAttributeKey
Returns a new custom attribute key with the specified name.
keyName: The name of the custom attribute for use as a key in a CSSearchableItemAttributeSet. The key name must be a string that contains only ASCII characters and no punctuation other than the underscore (that is “_”). The prefix `kMD` is reserved.
Return Value ¶
A new custom attribute key.
Discussion ¶
To create custom attribute key names, use a reverse DNS format that includes your company name and does not include the period character (”.”). For example, a key name of the form `com_mycompany_myapp_mykeyname` works well.
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey/init(keyName:)
func (CSCustomAttributeKey) InitWithKeyNameSearchableSearchableByDefaultUniqueMultiValued ¶
func (c CSCustomAttributeKey) InitWithKeyNameSearchableSearchableByDefaultUniqueMultiValued(keyName string, searchable bool, searchableByDefault bool, unique bool, multiValued bool) CSCustomAttributeKey
Returns a new custom attribute key with the specified name and properties.
keyName: The name of the custom attribute for use as a key in a CSSearchableItemAttributeSet. The key name must be a string that contains only ASCII characters and no punctuation other than the underscore (that is, “_”). The prefix `kMD` is reserved.
searchable: A Boolean value that indicates if the attribute can be specified as a search term.
searchableByDefault: A Boolean value that indicates if the attribute should be searchable by default.
unique: A Boolean value that indicates if duplicate values should be treated as the same value to save storage space.
multiValued: A Boolean value that indicates if the attribute is likely to have multiple values, such as arrays, associated with it.
Return Value ¶
A new custom attribute key with the specified name and properties.
Discussion ¶
To create custom attribute key names, it’s recommended that you use a reverse DNS format that includes your company name and does not include the period character (”.”). For example, a key name of the form `com_mycompany_myapp_mykeyname` works well.
func (CSCustomAttributeKey) IsMultiValued ¶
func (c CSCustomAttributeKey) IsMultiValued() bool
A Boolean value that indicates if the custom attribute is likely to have multiple values, such as arrays, associated with it.
Discussion ¶
The default value of this property is `false`.
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey/isMultiValued
func (CSCustomAttributeKey) IsSearchable ¶
func (c CSCustomAttributeKey) IsSearchable() bool
A Boolean value that indicates if the custom attribute can be specified as a search term.
Discussion ¶
The default value of this property is `true`.
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey/isSearchable
func (CSCustomAttributeKey) IsSearchableByDefault ¶
func (c CSCustomAttributeKey) IsSearchableByDefault() bool
A Boolean value that indicates if the custom attribute should be searchable by default.
Discussion ¶
The default value of this property is `false`.
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey/isSearchableByDefault
func (CSCustomAttributeKey) IsUnique ¶
func (c CSCustomAttributeKey) IsUnique() bool
A Boolean value that indicates if duplicate custom attribute values should be treated as the same value to save storage space.
Discussion ¶
The default value of this property is `false`.
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey/isUnique
func (CSCustomAttributeKey) KeyName ¶
func (c CSCustomAttributeKey) KeyName() string
The name of the custom attribute key.
Discussion ¶
The key name is a string that contains only ASCII characters and no punctuation other than the underscore (that is “_”). The prefix `kMD` is reserved. To create a custom attribute key name, it’s recommended that you use a reverse DNS format that includes your company name and does not include the period character (”.”). For example, a key name of the form `com_mycompany_myapp_mykeyname` works well.
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey/keyName
type CSCustomAttributeKeyClass ¶
type CSCustomAttributeKeyClass struct {
// contains filtered or unexported fields
}
func GetCSCustomAttributeKeyClass ¶
func GetCSCustomAttributeKeyClass() CSCustomAttributeKeyClass
GetCSCustomAttributeKeyClass returns the class object for CSCustomAttributeKey.
func (CSCustomAttributeKeyClass) Alloc ¶
func (cc CSCustomAttributeKeyClass) Alloc() CSCustomAttributeKey
Alloc allocates memory for a new instance of the class.
func (CSCustomAttributeKeyClass) Class ¶
func (cc CSCustomAttributeKeyClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type CSImportExtension ¶
type CSImportExtension struct {
objectivec.Object
}
An object that provides searchable attributes for file types that the app supports.
Overview ¶
To create a Spotlight File Import extension, add a target to your app using the Spotlight File Import extension template in Xcode. The template project contains a subclass of CSImportExtension. To index content on a user’s device, Core Spotlight loads your extension and invokes the CSImportExtension.UpdateAttributesForFileAtURLError method. Core Spotlight passes a CSSearchableItemAttributeSet and URL of a file to the extension, and you set properties that are relevant for the file.
Typically, your extension loads details about the file and uses that information to set properties of the attribute set. For example, if your app contains files that are notes the user creates, it does the following:
To specify the file types your app supports, set the value of CSSupportedContentTypes in your extension’s `Info.Plist()` file to an array of file type identifiers. For more information about file type identifiers, see Uniform Type Identifiers. The app in the previous example configures the extension’s `Info.Plist()` as follows:
Providing searchable attributes ¶
- CSImportExtension.UpdateAttributesForFileAtURLError: Provides searchable attributes for a file at the specified URL.
See: https://developer.apple.com/documentation/CoreSpotlight/CSImportExtension
func CSImportExtensionFromID ¶
func CSImportExtensionFromID(id objc.ID) CSImportExtension
CSImportExtensionFromID constructs a CSImportExtension from an objc.ID.
An object that provides searchable attributes for file types that the app supports.
func NewCSImportExtension ¶
func NewCSImportExtension() CSImportExtension
NewCSImportExtension creates a new CSImportExtension instance.
func (CSImportExtension) Autorelease ¶
func (c CSImportExtension) Autorelease() CSImportExtension
Autorelease adds the receiver to the current autorelease pool.
func (CSImportExtension) Init ¶
func (c CSImportExtension) Init() CSImportExtension
Init initializes the instance.
func (CSImportExtension) UpdateAttributesForFileAtURLError ¶
func (c CSImportExtension) UpdateAttributesForFileAtURLError(attributes ICSSearchableItemAttributeSet, contentURL foundation.NSURL) (bool, error)
Provides searchable attributes for a file at the specified URL.
attributes: The attribute set for the file at `contentURL`.
contentURL: The URL of the file to provide attributes for.
Discussion ¶
When Core Spotlight invokes this method, update the properties of the attribute set according to the content in the specified file. For a complete list of properties available, see CSSearchableItemAttributeSet.
See: https://developer.apple.com/documentation/CoreSpotlight/CSImportExtension/update(_:forFileAt:)
type CSImportExtensionClass ¶
type CSImportExtensionClass struct {
// contains filtered or unexported fields
}
func GetCSImportExtensionClass ¶
func GetCSImportExtensionClass() CSImportExtensionClass
GetCSImportExtensionClass returns the class object for CSImportExtension.
func (CSImportExtensionClass) Alloc ¶
func (cc CSImportExtensionClass) Alloc() CSImportExtension
Alloc allocates memory for a new instance of the class.
func (CSImportExtensionClass) Class ¶
func (cc CSImportExtensionClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type CSIndexErrorCode ¶
type CSIndexErrorCode int
See: https://developer.apple.com/documentation/CoreSpotlight/CSIndexError/Code
const ( CSIndexErrorCodeIndexUnavailableError CSIndexErrorCode = -1000 // CSIndexErrorCodeIndexingUnsupported: Indexing isn’t supported on the device. CSIndexErrorCodeIndexingUnsupported CSIndexErrorCode = -1005 // CSIndexErrorCodeInvalidClientStateError: The provided client state data is invalid. CSIndexErrorCodeInvalidClientStateError CSIndexErrorCode = -1002 // CSIndexErrorCodeInvalidItemError: The searchable item object is invalid. CSIndexErrorCodeInvalidItemError CSIndexErrorCode = -1001 // CSIndexErrorCodeMismatchedClientState: The provided client state did not match the information in the index. CSIndexErrorCodeMismatchedClientState CSIndexErrorCode = -1006 // CSIndexErrorCodeQuotaExceeded: The quota for the bundle has been exceeded. CSIndexErrorCodeQuotaExceeded CSIndexErrorCode = -1004 // CSIndexErrorCodeRemoteConnectionError: An error occurred while communicating with the remote process. CSIndexErrorCodeRemoteConnectionError CSIndexErrorCode = -1003 // CSIndexErrorCodeUnknownError: An unknown error occurred. CSIndexErrorCodeUnknownError CSIndexErrorCode = -1 )
func (CSIndexErrorCode) String ¶
func (e CSIndexErrorCode) String() string
type CSIndexExtensionRequestHandler ¶
type CSIndexExtensionRequestHandler struct {
objectivec.Object
}
An interface that implements an index-maintenance app extension.
Overview ¶
The CSIndexExtensionRequestHandler class provides the main entry point for an index-maintenance app extension. If any issues arise with your app’s indexes and your app isn’t running, the system loads your app extension and looks for an implementation of this class. It instantiates the class it finds and uses it to perform any index-related maintenance.
Define a custom subclass of CSIndexExtensionRequestHandler in your app extension and implement methods of the CSSearchableIndexDelegate protocol in it. Use those methods to perform any required updates to your app’s index files. For example, use the CSIndexExtensionRequestHandler.SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler method to reindex all items in your app.
See: https://developer.apple.com/documentation/CoreSpotlight/CSIndexExtensionRequestHandler
func CSIndexExtensionRequestHandlerFromID ¶
func CSIndexExtensionRequestHandlerFromID(id objc.ID) CSIndexExtensionRequestHandler
CSIndexExtensionRequestHandlerFromID constructs a CSIndexExtensionRequestHandler from an objc.ID.
An interface that implements an index-maintenance app extension.
func NewCSIndexExtensionRequestHandler ¶
func NewCSIndexExtensionRequestHandler() CSIndexExtensionRequestHandler
NewCSIndexExtensionRequestHandler creates a new CSIndexExtensionRequestHandler instance.
func (CSIndexExtensionRequestHandler) Autorelease ¶
func (c CSIndexExtensionRequestHandler) Autorelease() CSIndexExtensionRequestHandler
Autorelease adds the receiver to the current autorelease pool.
func (CSIndexExtensionRequestHandler) DataForSearchableIndexItemIdentifierTypeIdentifierError ¶
func (c CSIndexExtensionRequestHandler) DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex ICSSearchableIndex, itemIdentifier string, typeIdentifier string) (foundation.NSData, error)
func (CSIndexExtensionRequestHandler) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError ¶
func (c CSIndexExtensionRequestHandler) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex ICSSearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool) (foundation.NSURL, error)
func (CSIndexExtensionRequestHandler) Init ¶
func (c CSIndexExtensionRequestHandler) Init() CSIndexExtensionRequestHandler
Init initializes the instance.
func (CSIndexExtensionRequestHandler) SearchableIndexDidFinishThrottle ¶
func (c CSIndexExtensionRequestHandler) SearchableIndexDidFinishThrottle(searchableIndex ICSSearchableIndex)
Tells the delegate that the index throttling has finished.
searchableIndex: The index that was throttled.
Discussion ¶
In some situations, such as when the device is using battery only, the system may throttle indexing to save power. You can implement this method to be notified when throttling is finished so that your app can resume its standard indexing behavior.
func (CSIndexExtensionRequestHandler) SearchableIndexDidThrottle ¶
func (c CSIndexExtensionRequestHandler) SearchableIndexDidThrottle(searchableIndex ICSSearchableIndex)
Tells the delegate that indexing is being throttled.
searchableIndex: The indexing that’s being throttled.
Discussion ¶
In some situations, such as when the device is using battery only, the system may throttle indexing to save power. You can implement this method to be notified of this situation so that you can respond by, for example, prioritizing the items to index.
func (CSIndexExtensionRequestHandler) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler ¶
func (c CSIndexExtensionRequestHandler) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex ICSSearchableIndex, acknowledgementHandler VoidHandler)
Tells the delegate to reindex all searchable data and clear all local state information.
searchableIndex: The index in which to reindex the searchable data. The delegate or app extension should pass `searchableIndex` to CSSearchableIndex.IndexSearchableItemsCompletionHandler.
acknowledgementHandler: The handler to call after all client state has been saved. Note that if the app passes client state information in a batch (for example, by calling CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler), the acknowledgement handler can be called immediately.
The delegate or app extension must call the acknowledgement handler after all client state information has been saved, so that the indexer can call this method again in case of a crash.
Discussion ¶
Typically, the index tells the delegate to reindex its searchable data and clear local state when the index has been lost. An app extension should not use the index passed in `searchableIndex` when a custom data protection class is needed.
func (CSIndexExtensionRequestHandler) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandlerSync ¶
func (c CSIndexExtensionRequestHandler) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandlerSync(ctx context.Context, searchableIndex ICSSearchableIndex) error
SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandlerSync is a synchronous wrapper around CSIndexExtensionRequestHandler.SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler. It blocks until the completion handler fires or the context is cancelled.
func (CSIndexExtensionRequestHandler) SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler ¶
func (c CSIndexExtensionRequestHandler) SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex ICSSearchableIndex, identifiers []string, acknowledgementHandler VoidHandler)
Tells the delegate to reindex the searchable items associated with the specified identifiers.
searchableIndex: The index in which to reindex the specified searchable data. To update the state of the items, the delegate or app extension should call CSSearchableIndex.IndexSearchableItemsCompletionHandler passing in `searchableIndex`.
identifiers: An array of identifiers that specify searchable items.
acknowledgementHandler: The handler to call after all client state has been saved. Note that if the app passes client state information in a batch (for example, by calling CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler), the acknowledgement handler can be called immediately.
The delegate or app extension must call the acknowledgement handler after all client state information has been saved, so that the indexer can call this method again in case of a crash.
Discussion ¶
An app extension should not use the index passed in `searchableIndex` when a custom data protection class is needed.
func (CSIndexExtensionRequestHandler) SearchableItemsDidUpdate ¶
func (c CSIndexExtensionRequestHandler) SearchableItemsDidUpdate(items []CSSearchableItem)
Tells the delegate that the framework updated the list of searchable items.
items: The items the framework updated.
Discussion ¶
The framework calls this method when it updates an item with specific attributes; see CSSearchableItem.UpdateListenerOptions for Apple Intelligence attributes.
func (CSIndexExtensionRequestHandler) SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler ¶
func (c CSIndexExtensionRequestHandler) SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler(identifiers []string, protectionClass foundation.NSFileProtectionType, searchableItemsHandler CSSearchableItemArrayHandler)
func (CSIndexExtensionRequestHandler) SearchableItemsForIdentifiersSearchableItemsHandler ¶
func (c CSIndexExtensionRequestHandler) SearchableItemsForIdentifiersSearchableItemsHandler(identifiers []string, searchableItemsHandler CSSearchableItemArrayHandler)
Requests that the delegate provide searchable items for the provided identifiers.
identifiers: An array of strings that represent the identifiers.
searchableItemsHandler: A method the framework calls that provides an array of CSSearchableItem objects.
Discussion ¶
Use this method to provide the framework with a list of identifiers to search for.
type CSIndexExtensionRequestHandlerClass ¶
type CSIndexExtensionRequestHandlerClass struct {
// contains filtered or unexported fields
}
func GetCSIndexExtensionRequestHandlerClass ¶
func GetCSIndexExtensionRequestHandlerClass() CSIndexExtensionRequestHandlerClass
GetCSIndexExtensionRequestHandlerClass returns the class object for CSIndexExtensionRequestHandler.
func (CSIndexExtensionRequestHandlerClass) Alloc ¶
func (cc CSIndexExtensionRequestHandlerClass) Alloc() CSIndexExtensionRequestHandler
Alloc allocates memory for a new instance of the class.
func (CSIndexExtensionRequestHandlerClass) Class ¶
func (cc CSIndexExtensionRequestHandlerClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type CSLocalizedString ¶
type CSLocalizedString struct {
foundation.NSString
}
An object that displays localized text in search results related to your app.
Overview ¶
The CSLocalizedString class helps you localize text in searchable items. You can use a CSLocalizedString object in place of an NSString object to display localized text in search results related to your app.
For example, you might use the following code to define a CSLocalizedString object for a searchable item you want to identify as “Song” in English:
Specifying localized strings ¶
- CSLocalizedString.InitWithLocalizedStrings: Initializes a CSLocalizedString object with the specified dictionary of localized strings.
Getting a localized string ¶
- CSLocalizedString.LocalizedString: Returns the localized string for the current language.
See: https://developer.apple.com/documentation/CoreSpotlight/CSLocalizedString
func CSLocalizedStringFromID ¶
func CSLocalizedStringFromID(id objc.ID) CSLocalizedString
CSLocalizedStringFromID constructs a CSLocalizedString from an objc.ID.
An object that displays localized text in search results related to your app.
func NewCSLocalizedString ¶
func NewCSLocalizedString() CSLocalizedString
NewCSLocalizedString creates a new CSLocalizedString instance.
func NewCSLocalizedStringWithLocalizedStrings ¶
func NewCSLocalizedStringWithLocalizedStrings(localizedStrings foundation.INSDictionary) CSLocalizedString
Initializes a CSLocalizedString object with the specified dictionary of localized strings.
localizedStrings: A dictionary in which each key-value pair consists of a language designator and a localized string. For example, you might pass in a dictionary like `@{@"en":@"Email Message"}`.
Return Value ¶
An object that contains the localized versions for a specific string.
See: https://developer.apple.com/documentation/CoreSpotlight/CSLocalizedString/init(localizedStrings:)
func (CSLocalizedString) Autorelease ¶
func (c CSLocalizedString) Autorelease() CSLocalizedString
Autorelease adds the receiver to the current autorelease pool.
func (CSLocalizedString) Init ¶
func (c CSLocalizedString) Init() CSLocalizedString
Init initializes the instance.
func (CSLocalizedString) InitWithLocalizedStrings ¶
func (c CSLocalizedString) InitWithLocalizedStrings(localizedStrings foundation.INSDictionary) CSLocalizedString
Initializes a CSLocalizedString object with the specified dictionary of localized strings.
localizedStrings: A dictionary in which each key-value pair consists of a language designator and a localized string. For example, you might pass in a dictionary like `@{@"en":@"Email Message"}`.
Return Value ¶
An object that contains the localized versions for a specific string.
See: https://developer.apple.com/documentation/CoreSpotlight/CSLocalizedString/init(localizedStrings:)
func (CSLocalizedString) LocalizedString ¶
func (c CSLocalizedString) LocalizedString() string
Returns the localized string for the current language.
Return Value ¶
The localized string for the current language.
See: https://developer.apple.com/documentation/CoreSpotlight/CSLocalizedString/localizedString()
type CSLocalizedStringClass ¶
type CSLocalizedStringClass struct {
// contains filtered or unexported fields
}
func GetCSLocalizedStringClass ¶
func GetCSLocalizedStringClass() CSLocalizedStringClass
GetCSLocalizedStringClass returns the class object for CSLocalizedString.
func (CSLocalizedStringClass) Alloc ¶
func (cc CSLocalizedStringClass) Alloc() CSLocalizedString
Alloc allocates memory for a new instance of the class.
func (CSLocalizedStringClass) Class ¶
func (cc CSLocalizedStringClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type CSPerson ¶
type CSPerson struct {
objectivec.Object
}
An object that represents a person in the context of search results.
Overview ¶
A CSPerson object represents a person in the context of search results. You can create a CSPerson object when you have a display name and a contact handle of some kind, such as an email address or phone number.
If you create a CSPerson object to represent a specific contact, you can use the value of the contact’s identifier property for the person object’s CSPerson.ContactIdentifier property. Using the same value lets you avoid using names or phone numbers to look up the contact that’s associated with a person.
Initializing a person object ¶
- CSPerson.InitWithDisplayNameHandlesHandleIdentifier: Returns a new CSPerson object initialized with the specified display name and contact attributes.
- CSPerson.InitWithCoder
Accessing person properties ¶
- CSPerson.ContactIdentifier: The identifier for the contact associated with the person.
- CSPerson.SetContactIdentifier
- CSPerson.DisplayName: A display name for the person.
- CSPerson.HandleIdentifier: A key that identifies the type of contact property represented by the person object’s handle.
- CSPerson.Handles: An array of contact handles related to the person.
See: https://developer.apple.com/documentation/CoreSpotlight/CSPerson
func CSPersonFromID ¶
CSPersonFromID constructs a CSPerson from an objc.ID.
An object that represents a person in the context of search results.
func NewCSPersonWithCoder ¶
func NewCSPersonWithCoder(coder foundation.INSCoder) CSPerson
See: https://developer.apple.com/documentation/CoreSpotlight/CSPerson/init(coder:)
func NewCSPersonWithDisplayNameHandlesHandleIdentifier ¶
func NewCSPersonWithDisplayNameHandlesHandleIdentifier(displayName string, handles []string, handleIdentifier string) CSPerson
Returns a new CSPerson object initialized with the specified display name and contact attributes.
displayName: The name of the person in a user-displayable string.
handles: An array of contact handles, such as phone number or email address.
handleIdentifier: A property key that specifies a handle type, such as CNContactEmailAddressesKey.
Return Value ¶
An initialized person object that represents a user’s contact.
func (CSPerson) Autorelease ¶
Autorelease adds the receiver to the current autorelease pool.
func (CSPerson) ContactIdentifier ¶
The identifier for the contact associated with the person.
Discussion ¶
When you use the contact’s identifier value for the optional CSPerson.ContactIdentifier property, it enables a direct way to look up the associated contact.
See: https://developer.apple.com/documentation/CoreSpotlight/CSPerson/contactIdentifier
func (CSPerson) DisplayName ¶
A display name for the person.
Discussion ¶
Use this optional property to provide a name for the person object that can be displayed to users.
See: https://developer.apple.com/documentation/CoreSpotlight/CSPerson/displayName
func (CSPerson) EncodeWithCoder ¶
func (c CSPerson) EncodeWithCoder(coder foundation.INSCoder)
func (CSPerson) HandleIdentifier ¶
A key that identifies the type of contact property represented by the person object’s handle.
Discussion ¶
The value of this property is a CNContact property key, such as CNContactPhoneNumbersKey or CNContactEmailAddressesKey.
See: https://developer.apple.com/documentation/CoreSpotlight/CSPerson/handleIdentifier
func (CSPerson) Handles ¶
An array of contact handles related to the person.
Discussion ¶
Contact handles can include phone numbers, email addresses, and URLs. For additional contact handles, see Metadata Keys in CNContact.
See: https://developer.apple.com/documentation/CoreSpotlight/CSPerson/handles
func (CSPerson) InitWithCoder ¶
func (c CSPerson) InitWithCoder(coder foundation.INSCoder) CSPerson
See: https://developer.apple.com/documentation/CoreSpotlight/CSPerson/init(coder:)
func (CSPerson) InitWithDisplayNameHandlesHandleIdentifier ¶
func (c CSPerson) InitWithDisplayNameHandlesHandleIdentifier(displayName string, handles []string, handleIdentifier string) CSPerson
Returns a new CSPerson object initialized with the specified display name and contact attributes.
displayName: The name of the person in a user-displayable string.
handles: An array of contact handles, such as phone number or email address.
handleIdentifier: A property key that specifies a handle type, such as CNContactEmailAddressesKey.
Return Value ¶
An initialized person object that represents a user’s contact.
func (CSPerson) SetContactIdentifier ¶
type CSPersonClass ¶
type CSPersonClass struct {
// contains filtered or unexported fields
}
func GetCSPersonClass ¶
func GetCSPersonClass() CSPersonClass
GetCSPersonClass returns the class object for CSPerson.
func (CSPersonClass) Alloc ¶
func (cc CSPersonClass) Alloc() CSPerson
Alloc allocates memory for a new instance of the class.
func (CSPersonClass) Class ¶
func (cc CSPersonClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type CSSearchQuery ¶
type CSSearchQuery struct {
objectivec.Object
}
A type you use to programmatically search the indexed app content.
Overview ¶
Use a CSSearchQuery object to search your app’s indexed content using a formatted search string. To perform a search, build a predicate string to specify the indexed attributes you want to search and the value you want them to match. After you start the query, you receive batches of results in the handlers you provide.
Each CSSearchQuery object you create performs a single search operation and delivers the results back to your code. Build each predicate with an attribute name, one or more values, and either a comparison operator or the [InRange] operator. Your predicate string takes one of the following forms:
- `attributeName operator value[modifiers]` - `InRange(attributeName, minValue, maxValue)`
Queries search all of your app’s indexes by default. If your app encrypts some of its indexed data, you can limit your search to one or more of the encrypted indexes by updating the query’s CSSearchQuery.ProtectionClasses property. The query must have access to the protected index to search it.
For more information about how to construct predicate strings for your query, see Searching for information in your app.
Creating a query object ¶
- CSSearchQuery.InitWithQueryStringQueryContext: Initializes and returns a query object with the specified query string and query context.
Specifying the indexes to search ¶
- CSSearchQuery.ProtectionClasses: The protection types of the indexes you want to search.
- CSSearchQuery.SetProtectionClasses
Executing the query automatically ¶
- CSSearchQuery.Results: The results that match the current query string.
- CSSearchQuery.SetResults
Executing the query with handler blocks ¶
- CSSearchQuery.Start: Starts searching the index for items that match the current query string and parameters.
- CSSearchQuery.Cancel: Cancels the current query operation.
- CSSearchQuery.IsCancelled: A Boolean value that indicates whether the current query is no longer running.
- CSSearchQuery.FoundItemCount: The number of matching items found for the given query string.
- CSSearchQuery.FoundItemsHandler: The block to execute when the query delivers a new batch of matching items.
- CSSearchQuery.SetFoundItemsHandler
- CSSearchQuery.CompletionHandler: The block to execute when the query finishes delivering all results.
- CSSearchQuery.SetCompletionHandler
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQuery
func CSSearchQueryFromID ¶
func CSSearchQueryFromID(id objc.ID) CSSearchQuery
CSSearchQueryFromID constructs a CSSearchQuery from an objc.ID.
A type you use to programmatically search the indexed app content.
func NewCSSearchQuery ¶
func NewCSSearchQuery() CSSearchQuery
NewCSSearchQuery creates a new CSSearchQuery instance.
func NewCSSearchQueryWithQueryStringQueryContext ¶
func NewCSSearchQueryWithQueryStringQueryContext(queryString string, queryContext ICSSearchQueryContext) CSSearchQuery
Initializes and returns a query object with the specified query string and query context.
Return Value ¶
An initialized query object.
Discussion ¶
- queryString: A formatted string that defines the matching criteria to apply to indexed items. To learn how to construct a query string, see Create a query string for your search. - This parameter must not be `nil`. - - queryContext: A CSSearchQueryContext object that focuses the query results.
Discussion ¶
After you create and initialize a query object, and call CSSearchQuery.Start to begin the query, you can’t update or reuse the query object for a new query.
func (CSSearchQuery) Autorelease ¶
func (c CSSearchQuery) Autorelease() CSSearchQuery
Autorelease adds the receiver to the current autorelease pool.
func (CSSearchQuery) Cancel ¶
func (c CSSearchQuery) Cancel()
Cancels the current query operation.
Discussion ¶
Cancel a query operation when you no longer need the results. You can use this method to cancel a query you started, by using either the CSSearchQuery.Start method or by accessing the CSSearchQuery.Results property. After you cancel a query operation, you can’t restart it. To perform a new query, create a new query object. For example, you might cancel one query and start a new one when the text in your app’s search control changes.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQuery/cancel()
func (CSSearchQuery) CompletionHandler ¶
func (c CSSearchQuery) CompletionHandler() ErrorHandler
The block to execute when the query finishes delivering all results.
Discussion ¶
Specify a value for this property only if you start your query with the CSSearchQuery.Start method. When the query finishes, the query object executes the provided closure once to let you know the search is complete. Use your handler to perform any related cleanup. The block you assign to this property returns no parameters and takes the following parameter:
error: An error object with details about a problem that occurred, or `nil` if the query completed successfully.
If you start the query by accessing the CSSearchQuery.Results property of CSSearchQuery or the CSUserQuery.Responses property of CSUserQuery, the query object doesn’t execute the block in this property.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQuery/completionHandler
func (CSSearchQuery) FoundItemCount ¶
func (c CSSearchQuery) FoundItemCount() uint
The number of matching items found for the given query string.
Discussion ¶
As Spotlight finds matches to the query string, it updates the value of this property and delivers the new results to the handler in the CSSearchQuery.FoundItemsHandler property. This value reflects the total number of matching items, including the number of items the query delivered to your handler block previously.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQuery/foundItemCount
func (CSSearchQuery) FoundItemsHandler ¶
func (c CSSearchQuery) FoundItemsHandler() CSSearchableItemArrayHandler
The block to execute when the query delivers a new batch of matching items.
Discussion ¶
Assign a block to this property that has no return value and takes the following parameter:
items: An array of items that match the specified query.
Specify a value for this property only if you start your query with the CSSearchQuery.Start method. While the query runs, the query object executes the provided closure one or more times to deliver suggested search results for the current search term. Use your handler to retrieve the those results and display them. The query object stops delivering matching items when it reaches the maximum number found in the CSUserQueryContext.MaxResultCount property of the query configuration parameters.
Each time the query object calls your handler, it delivers only the new items that it found since the last time it called your handler. However, the query object updates the value of the CSSearchQuery.FoundItemCount property with the total number of items before it calls your handler.
If you start the query by accessing the CSSearchQuery.Results property of CSSearchQuery or the CSUserQuery.Responses property of CSUserQuery, the query object doesn’t execute the block in this property. property of CSUserQuery, the query object doesn’t execute the block in this property.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQuery/foundItemsHandler
func (CSSearchQuery) Init ¶
func (c CSSearchQuery) Init() CSSearchQuery
Init initializes the instance.
func (CSSearchQuery) InitWithQueryStringQueryContext ¶
func (c CSSearchQuery) InitWithQueryStringQueryContext(queryString string, queryContext ICSSearchQueryContext) CSSearchQuery
Initializes and returns a query object with the specified query string and query context.
Return Value ¶
An initialized query object.
Discussion ¶
- queryString: A formatted string that defines the matching criteria to apply to indexed items. To learn how to construct a query string, see Create a query string for your search. - This parameter must not be `nil`. - - queryContext: A CSSearchQueryContext object that focuses the query results.
Discussion ¶
After you create and initialize a query object, and call CSSearchQuery.Start to begin the query, you can’t update or reuse the query object for a new query.
func (CSSearchQuery) IsCancelled ¶
func (c CSSearchQuery) IsCancelled() bool
A Boolean value that indicates whether the current query is no longer running.
Discussion ¶
The value of this property is `true` if you canceled it, and `false` if it’s still running or able to run.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQuery/isCancelled
func (CSSearchQuery) ProtectionClasses ¶
func (c CSSearchQuery) ProtectionClasses() []string
The protection types of the indexes you want to search.
Discussion ¶
When creating an index to store your app’s data, you can associate a file protection type with that index to encrypt the data it contains. File protections prevent access to the data unless specific conditions occur. For example, you can make the data available only when the device is unlocked, or make it available after the first successful unlocking of the device. This property indicates which of your app’s protected indexes you want to search.
Possible values for this property are complete, completeUnlessOpen, and completeUntilFirstUserAuthentication. By default, the system retrives the data protection class from the `com.AppleXCUIElementTypeDeveloperXCUIElementTypeDefault()-data-protection` entitlement, if it exists; otherwise, the default value is completeUntilFirstUserAuthentication.
For more information on how to configure file protection types with an index, see Adding your app’s content to Spotlight indexes.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQuery/protectionClasses
func (CSSearchQuery) Results ¶
func (c CSSearchQuery) Results() unsafe.Pointer
The results that match the current query string.
See: https://developer.apple.com/documentation/corespotlight/cssearchquery/results-swift.property
func (CSSearchQuery) SetCompletionHandler ¶
func (c CSSearchQuery) SetCompletionHandler(value ErrorHandler)
func (CSSearchQuery) SetFoundItemsHandler ¶
func (c CSSearchQuery) SetFoundItemsHandler(value CSSearchableItemArrayHandler)
func (CSSearchQuery) SetProtectionClasses ¶
func (c CSSearchQuery) SetProtectionClasses(value []string)
func (CSSearchQuery) SetResults ¶
func (c CSSearchQuery) SetResults(value unsafe.Pointer)
func (CSSearchQuery) Start ¶
func (c CSSearchQuery) Start()
Starts searching the index for items that match the current query string and parameters.
Discussion ¶
This method uses the configured search parameters and query string to begin a search of the index. It then delivers the results of that search to the closures in the CSSearchQuery.FoundItemsHandler and CSSearchQuery.CompletionHandler properties of the query object.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQuery/start()
type CSSearchQueryClass ¶
type CSSearchQueryClass struct {
// contains filtered or unexported fields
}
func GetCSSearchQueryClass ¶
func GetCSSearchQueryClass() CSSearchQueryClass
GetCSSearchQueryClass returns the class object for CSSearchQuery.
func (CSSearchQueryClass) Alloc ¶
func (cc CSSearchQueryClass) Alloc() CSSearchQuery
Alloc allocates memory for a new instance of the class.
func (CSSearchQueryClass) Class ¶
func (cc CSSearchQueryClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type CSSearchQueryContext ¶
type CSSearchQueryContext struct {
objectivec.Object
}
The behavior configuration to use for a search query.
Configuring search behavior ¶
- CSSearchQueryContext.FetchAttributes: The attributes the system fetches for the searchable items.
- CSSearchQueryContext.SetFetchAttributes
- CSSearchQueryContext.KeyboardLanguage: The language used for the query.
- CSSearchQueryContext.SetKeyboardLanguage
- CSSearchQueryContext.SourceOptions: The query source options to allow or deny Mail messages in the search.
- CSSearchQueryContext.SetSourceOptions
Filtering the results ¶
- CSSearchQueryContext.FilterQueries: The query string used to filter the results.
- CSSearchQueryContext.SetFilterQueries
Initializers ¶
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryContext
func CSSearchQueryContextFromID ¶
func CSSearchQueryContextFromID(id objc.ID) CSSearchQueryContext
CSSearchQueryContextFromID constructs a CSSearchQueryContext from an objc.ID.
The behavior configuration to use for a search query.
func NewCSSearchQueryContext ¶
func NewCSSearchQueryContext() CSSearchQueryContext
NewCSSearchQueryContext creates a new CSSearchQueryContext instance.
func NewCSSearchQueryContextWithCoder ¶
func NewCSSearchQueryContextWithCoder(coder foundation.INSCoder) CSSearchQueryContext
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryContext/init(coder:)
func (CSSearchQueryContext) Autorelease ¶
func (c CSSearchQueryContext) Autorelease() CSSearchQueryContext
Autorelease adds the receiver to the current autorelease pool.
func (CSSearchQueryContext) EncodeWithCoder ¶
func (c CSSearchQueryContext) EncodeWithCoder(coder foundation.INSCoder)
func (CSSearchQueryContext) FetchAttributes ¶
func (c CSSearchQueryContext) FetchAttributes() []string
The attributes the system fetches for the searchable items.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryContext/fetchAttributes
func (CSSearchQueryContext) FilterQueries ¶
func (c CSSearchQueryContext) FilterQueries() []string
The query string used to filter the results.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryContext/filterQueries
func (CSSearchQueryContext) Init ¶
func (c CSSearchQueryContext) Init() CSSearchQueryContext
Init initializes the instance.
func (CSSearchQueryContext) InitWithCoder ¶
func (c CSSearchQueryContext) InitWithCoder(coder foundation.INSCoder) CSSearchQueryContext
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryContext/init(coder:)
func (CSSearchQueryContext) KeyboardLanguage ¶
func (c CSSearchQueryContext) KeyboardLanguage() string
The language used for the query.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryContext/keyboardLanguage
func (CSSearchQueryContext) SetFetchAttributes ¶
func (c CSSearchQueryContext) SetFetchAttributes(value []string)
func (CSSearchQueryContext) SetFilterQueries ¶
func (c CSSearchQueryContext) SetFilterQueries(value []string)
func (CSSearchQueryContext) SetKeyboardLanguage ¶
func (c CSSearchQueryContext) SetKeyboardLanguage(value string)
func (CSSearchQueryContext) SetSourceOptions ¶
func (c CSSearchQueryContext) SetSourceOptions(value CSSearchQuerySourceOptions)
func (CSSearchQueryContext) SourceOptions ¶
func (c CSSearchQueryContext) SourceOptions() CSSearchQuerySourceOptions
The query source options to allow or deny Mail messages in the search.
type CSSearchQueryContextClass ¶
type CSSearchQueryContextClass struct {
// contains filtered or unexported fields
}
func GetCSSearchQueryContextClass ¶
func GetCSSearchQueryContextClass() CSSearchQueryContextClass
GetCSSearchQueryContextClass returns the class object for CSSearchQueryContext.
func (CSSearchQueryContextClass) Alloc ¶
func (cc CSSearchQueryContextClass) Alloc() CSSearchQueryContext
Alloc allocates memory for a new instance of the class.
func (CSSearchQueryContextClass) Class ¶
func (cc CSSearchQueryContextClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type CSSearchQueryErrorCode ¶
type CSSearchQueryErrorCode int
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryError/Code
const ( // CSSearchQueryErrorCodeCancelled: The query stopped because someone canceled it. CSSearchQueryErrorCodeCancelled CSSearchQueryErrorCode = -2003 // CSSearchQueryErrorCodeIndexUnreachable: The index is unreachable. CSSearchQueryErrorCodeIndexUnreachable CSSearchQueryErrorCode = -2001 // CSSearchQueryErrorCodeInvalidQuery: The query is syntactically invalid or specifies items that your app doesn’t have access to. CSSearchQueryErrorCodeInvalidQuery CSSearchQueryErrorCode = -2002 // CSSearchQueryErrorCodeUnknown: An unknown error occurred. CSSearchQueryErrorCodeUnknown CSSearchQueryErrorCode = -2000 )
func (CSSearchQueryErrorCode) String ¶
func (e CSSearchQueryErrorCode) String() string
type CSSearchQuerySourceOptions ¶
type CSSearchQuerySourceOptions uint
const ( // CSSearchQuerySourceOptionAllowMail: The query allows Mail messages in the search. CSSearchQuerySourceOptionAllowMail CSSearchQuerySourceOptions = 1 // CSSearchQuerySourceOptionDefault: The query uses the default search option that excludes Mail messages. CSSearchQuerySourceOptionDefault CSSearchQuerySourceOptions = 0 )
func (CSSearchQuerySourceOptions) String ¶
func (e CSSearchQuerySourceOptions) String() string
type CSSearchableIndex ¶
type CSSearchableIndex struct {
objectivec.Object
}
An on-device index for your app’s searchable content.
Overview ¶
A CSSearchableIndex object manages an on-device index for your app’s searchable content. To make your app’s content searchable, create one or more CSSearchableItem objects for your content and add those items to the index. If your app defines AppEntity types, you can also index those types directly or associate them with your CSSearchableItem objects. When you execute a query, Core Spotlight searches your indexes for the requested information and returns the results to your code.
Create custom CSSearchableIndex objects in your production code to store your app’s content, instead of using the default index. Custom indexes support data protection, which allows you to encrypt your data and protect it from unauthorized access. Custom indexes also support batch operations, which allow you to index large amounts of data more efficiently and with less risk. For example, you can add custom state information to each batch operation to make it easier to restart the indexing process if your app or app extension crashes. Use the default index only during testing or prototyping of your features.
Modify a CSSearchableIndex object from only one thread or task at a time, and modify it only from your signed app or app extension. It’s a programming error to access a custom index from multiple threads simultaneously or from an unsigned bundle. When performing batch updates on an index, start each new batch operation only after calling the CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler or CSSearchableIndex.EndIndexBatchWithExpectedClientStateNewClientStateCompletionHandler method of the previous batch operation.
Creating an index ¶
- CSSearchableIndex.InitWithName: Returns an on-device index with the specified name.
- CSSearchableIndex.InitWithNameProtectionClass: Returns an on-device index with the specified name and data protection class.
Responding to index-related changes ¶
- CSSearchableIndex.IndexDelegate: The delegate object that can handle index-management tasks.
- CSSearchableIndex.SetIndexDelegate
Managing items in an index ¶
- CSSearchableIndex.IndexSearchableItemsCompletionHandler: Adds or updates items in the index.
- CSSearchableIndex.DeleteAllSearchableItemsWithCompletionHandler: Deletes all searchable items from the index.
- CSSearchableIndex.DeleteSearchableItemsWithDomainIdentifiersCompletionHandler: Removes from the index all searchable items associated with the specified domain.
- CSSearchableIndex.DeleteSearchableItemsWithIdentifiersCompletionHandler: Removes from the index all items with the specified identifiers.
Batching index updates ¶
- CSSearchableIndex.BeginIndexBatch: Begins a batch of updates to an index.
- CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler: Ends a batch of index updates and stores the specified state information.
- CSSearchableIndex.EndIndexBatchWithExpectedClientStateNewClientStateCompletionHandler: Ends a batch of index updates and stores the specified state information.
- CSSearchableIndex.FetchLastClientStateWithCompletionHandler: Fetches the app’s most recent client state information asynchronously.
Handling drag and drop content ¶
- CSSearchableIndex.FetchDataForBundleIdentifierItemIdentifierContentTypeCompletionHandler: Fetches data from an external provider.
Getting the protection class ¶
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndex
func CSSearchableIndexFromID ¶
func CSSearchableIndexFromID(id objc.ID) CSSearchableIndex
CSSearchableIndexFromID constructs a CSSearchableIndex from an objc.ID.
An on-device index for your app’s searchable content.
func NewCSSearchableIndex ¶
func NewCSSearchableIndex() CSSearchableIndex
NewCSSearchableIndex creates a new CSSearchableIndex instance.
func NewCSSearchableIndexWithName ¶
func NewCSSearchableIndexWithName(name string) CSSearchableIndex
Returns an on-device index with the specified name.
name: A name that pertains to your custom organization.
Return Value ¶
An on-device index.
Discussion ¶
If you want to use batching or you want to index items in a specific protection class, you need to use your own index (you can’t perform batch updates on the default index).
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndex/init(name:)
func NewCSSearchableIndexWithNameProtectionClass ¶
func NewCSSearchableIndexWithNameProtectionClass(name string, protectionClass foundation.NSFileProtectionType) CSSearchableIndex
Returns an on-device index with the specified name and data protection class.
name: A name that pertains to your custom organization.
protectionClass: The file protection class. Acceptable values are none, complete, completeUnlessOpen, or completeUntilFirstUserAuthentication.
Return Value ¶
An index that can handle items within the specified protection class.
Discussion ¶
Use this method to specify a protection class for an index. You can specify a default protection class for index items in the entitlements for your app.
func (CSSearchableIndex) Autorelease ¶
func (c CSSearchableIndex) Autorelease() CSSearchableIndex
Autorelease adds the receiver to the current autorelease pool.
func (CSSearchableIndex) BeginIndexBatch ¶
func (c CSSearchableIndex) BeginIndexBatch()
Begins a batch of updates to an index.
Discussion ¶
Don’t call this method again before CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler has returned. (You can call it again before the completion handler passed to CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler has been called.)
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndex/beginBatch()
func (CSSearchableIndex) DeleteAllSearchableItems ¶
func (c CSSearchableIndex) DeleteAllSearchableItems(ctx context.Context) error
DeleteAllSearchableItems is a synchronous wrapper around CSSearchableIndex.DeleteAllSearchableItemsWithCompletionHandler. It blocks until the completion handler fires or the context is cancelled.
func (CSSearchableIndex) DeleteAllSearchableItemsWithCompletionHandler ¶
func (c CSSearchableIndex) DeleteAllSearchableItemsWithCompletionHandler(completionHandler ErrorHandler)
Deletes all searchable items from the index.
completionHandler: The block that’s called when the request has been journaled by the index (“journaled” means that the index makes a note that it has to perform this operation). Note that the request may not have completed.
The block receives the following parameter:
error: If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.
Discussion ¶
func (CSSearchableIndex) DeleteSearchableItemsWithDomainIdentifiersCompletionHandler ¶
func (c CSSearchableIndex) DeleteSearchableItemsWithDomainIdentifiersCompletionHandler(domainIdentifiers []string, completionHandler ErrorHandler)
Removes from the index all searchable items associated with the specified domain.
domainIdentifiers: The domain identifier that describes the group of items to delete. To learn more about domain identifiers, see CSSearchableItem.DomainIdentifier.
completionHandler: The block that’s called when the request has been journaled by the index (“journaled” means that the index makes a note that it has to perform this operation). Note that the request may not have completed.
The block receives the following parameter:
error: If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.
Discussion ¶
Use this method to delete groups of items. Note that the delete operation is recursive. For example, if domain identifiers are of the form `.`, calling this method and specifying “ deletes items with the specified account and any mailbox.
func (CSSearchableIndex) DeleteSearchableItemsWithIdentifiersCompletionHandler ¶
func (c CSSearchableIndex) DeleteSearchableItemsWithIdentifiersCompletionHandler(identifiers []string, completionHandler ErrorHandler)
Removes from the index all items with the specified identifiers.
identifiers: An array of identifiers that specify the items to delete.
completionHandler: The block that’s called when the data has been journaled by the index, which means that the index makes a note that it has to perform this operation. If the completion handler returns an error, it means that the data wasn’t journaled correctly and the client should retry the request.
The block receives the following parameter:
error: If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.
Discussion ¶
The [SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler] protocol method is called in the case that the journaling completed successfully, but the data was not able to be indexed for some reason.
func (CSSearchableIndex) EndIndexBatchWithClientState ¶
func (c CSSearchableIndex) EndIndexBatchWithClientState(ctx context.Context, clientState foundation.NSData) error
EndIndexBatchWithClientState is a synchronous wrapper around CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler. It blocks until the completion handler fires or the context is cancelled.
func (CSSearchableIndex) EndIndexBatchWithClientStateCompletionHandler ¶
func (c CSSearchableIndex) EndIndexBatchWithClientStateCompletionHandler(clientState foundation.NSData, completionHandler ErrorHandler)
Ends a batch of index updates and stores the specified state information.
clientState: Up to 250 bytes of information that can help you recover from a crash and resume indexing.
completionHandler: The block that’s called after the client state has been stored.
The block receives the following parameter:
error: If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.
Discussion ¶
func (CSSearchableIndex) EndIndexBatchWithExpectedClientStateNewClientState ¶
func (c CSSearchableIndex) EndIndexBatchWithExpectedClientStateNewClientState(ctx context.Context, expectedClientState foundation.NSData, newClientState foundation.NSData) error
EndIndexBatchWithExpectedClientStateNewClientState is a synchronous wrapper around CSSearchableIndex.EndIndexBatchWithExpectedClientStateNewClientStateCompletionHandler. It blocks until the completion handler fires or the context is cancelled.
func (CSSearchableIndex) EndIndexBatchWithExpectedClientStateNewClientStateCompletionHandler ¶
func (c CSSearchableIndex) EndIndexBatchWithExpectedClientStateNewClientStateCompletionHandler(expectedClientState foundation.NSData, newClientState foundation.NSData, completionHandler ErrorHandler)
Ends a batch of index updates and stores the specified state information.
expectedClientState: The client state data from the previous batch.
newClientState: Up to 250 bytes of app-specific data that can help you recover from a crash and resume indexing.
completionHandler: The block to call with the results. The block receives the following parameter:
error: If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.
Discussion ¶
func (CSSearchableIndex) FetchDataForBundleIdentifierItemIdentifierContentType ¶
func (c CSSearchableIndex) FetchDataForBundleIdentifierItemIdentifierContentType(ctx context.Context, bundleIdentifier string, itemIdentifier string, contentType uniformtypeidentifiers.UTType) (*foundation.NSData, error)
FetchDataForBundleIdentifierItemIdentifierContentType is a synchronous wrapper around CSSearchableIndex.FetchDataForBundleIdentifierItemIdentifierContentTypeCompletionHandler. It blocks until the completion handler fires or the context is cancelled.
func (CSSearchableIndex) FetchDataForBundleIdentifierItemIdentifierContentTypeCompletionHandler ¶
func (c CSSearchableIndex) FetchDataForBundleIdentifierItemIdentifierContentTypeCompletionHandler(bundleIdentifier string, itemIdentifier string, contentType uniformtypeidentifiers.UTType, completionHandler DataErrorHandler)
Fetches data from an external provider.
bundleIdentifier: The bundle identifier of the app to search.
itemIdentifier: The app-specific identifier of the item you want.
contentType: The type of data to fetch.
completionHandler: The block to execute with the results. The block has no return value and takes the following parameters:
data: The data for the specified item, if successful. error: An error object, or `nil` if the method retrieved the data successfully.
Discussion ¶
Clients with the appropriate entitlements can use this method to fetch data from an external app such as Mail.
func (CSSearchableIndex) FetchLastClientState ¶
func (c CSSearchableIndex) FetchLastClientState(ctx context.Context) (*foundation.NSData, error)
FetchLastClientState is a synchronous wrapper around CSSearchableIndex.FetchLastClientStateWithCompletionHandler. It blocks until the completion handler fires or the context is cancelled.
func (CSSearchableIndex) FetchLastClientStateWithCompletionHandler ¶
func (c CSSearchableIndex) FetchLastClientStateWithCompletionHandler(completionHandler DataErrorHandler)
Fetches the app’s most recent client state information asynchronously.
completionHandler: The block to call when the request has been journaled by the index, which means that the index makes a note that it has to perform this operation. Note that the request may not have completed.
The block receives the following parameter:
error: If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.
Discussion ¶
func (CSSearchableIndex) IndexDelegate ¶
func (c CSSearchableIndex) IndexDelegate() CSSearchableIndexDelegate
The delegate object that can handle index-management tasks.
Discussion ¶
The delegate should conform to the CSSearchableIndexDelegate protocol. Set this property to handle communication with the index and perform index-management tasks for your app. In particular, long-running apps should set a delegate so that the index can be updated while the app is in the background. Alternatively, you can create an extension with a request handler that conforms to the CSSearchableIndexDelegate protocol and let the extension perform index updates when your app isn’t running.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndex/indexDelegate
func (CSSearchableIndex) IndexSearchableItemsCompletionHandler ¶
func (c CSSearchableIndex) IndexSearchableItemsCompletionHandler(items []CSSearchableItem, completionHandler ErrorHandler)
Adds or updates items in the index.
items: An array of searchable items to add or update.
completionHandler: The block that’s called when the data has been journaled by the index, which means that the index makes a note that it has to perform this operation. If the completion handler returns an error, it means that the data wasn’t journaled correctly and the client should retry the request.
The block receives the following parameter:
error: If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.
Discussion ¶
The [SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler] protocol method is called in the case that the journaling completed successfully but the data was not able to be indexed for some reason.
func (CSSearchableIndex) Init ¶
func (c CSSearchableIndex) Init() CSSearchableIndex
Init initializes the instance.
func (CSSearchableIndex) InitWithName ¶
func (c CSSearchableIndex) InitWithName(name string) CSSearchableIndex
Returns an on-device index with the specified name.
name: A name that pertains to your custom organization.
Return Value ¶
An on-device index.
Discussion ¶
If you want to use batching or you want to index items in a specific protection class, you need to use your own index (you can’t perform batch updates on the default index).
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndex/init(name:)
func (CSSearchableIndex) InitWithNameProtectionClass ¶
func (c CSSearchableIndex) InitWithNameProtectionClass(name string, protectionClass foundation.NSFileProtectionType) CSSearchableIndex
Returns an on-device index with the specified name and data protection class.
name: A name that pertains to your custom organization.
protectionClass: The file protection class. Acceptable values are none, complete, completeUnlessOpen, or completeUntilFirstUserAuthentication.
Return Value ¶
An index that can handle items within the specified protection class.
Discussion ¶
Use this method to specify a protection class for an index. You can specify a default protection class for index items in the entitlements for your app.
func (CSSearchableIndex) ProtectionClass ¶
func (c CSSearchableIndex) ProtectionClass() foundation.NSFileProtectionType
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndex/protectionClass
func (CSSearchableIndex) SetIndexDelegate ¶
func (c CSSearchableIndex) SetIndexDelegate(value CSSearchableIndexDelegate)
type CSSearchableIndexClass ¶
type CSSearchableIndexClass struct {
// contains filtered or unexported fields
}
func GetCSSearchableIndexClass ¶
func GetCSSearchableIndexClass() CSSearchableIndexClass
GetCSSearchableIndexClass returns the class object for CSSearchableIndex.
func (CSSearchableIndexClass) Alloc ¶
func (cc CSSearchableIndexClass) Alloc() CSSearchableIndex
Alloc allocates memory for a new instance of the class.
func (CSSearchableIndexClass) Class ¶
func (cc CSSearchableIndexClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
func (CSSearchableIndexClass) DefaultSearchableIndex ¶
func (_CSSearchableIndexClass CSSearchableIndexClass) DefaultSearchableIndex() CSSearchableIndex
Returns the default on-device index.
Return Value ¶
The default on-device index.
Discussion ¶
If you want to use batching or you want to index items in a specific protection class, you need to use your own index (you can’t perform batch updates on the default index).
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndex/default()
func (CSSearchableIndexClass) IsIndexingAvailable ¶
func (_CSSearchableIndexClass CSSearchableIndexClass) IsIndexingAvailable() bool
Returns a Boolean value that indicates whether indexing is available on the current device.
Return Value ¶
`true` if indexing is available on the current device, or `false` if it isn’t.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndex/isIndexingAvailable()
type CSSearchableIndexDelegate ¶
type CSSearchableIndexDelegate interface {
objectivec.IObject
// Tells the delegate to reindex all searchable data and clear all local state information.
//
// See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndexDelegate/searchableIndex(_:reindexAllSearchableItemsWithAcknowledgementHandler:)
SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex ICSSearchableIndex, acknowledgementHandler VoidHandler)
// Tells the delegate to reindex the searchable items associated with the specified identifiers.
//
// See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndexDelegate/searchableIndex(_:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:)
SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex ICSSearchableIndex, identifiers []string, acknowledgementHandler VoidHandler)
}
A protocol that defines methods a delegate object or app extension uses to handle communication from the on-device index.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndexDelegate
type CSSearchableIndexDelegateConfig ¶
type CSSearchableIndexDelegateConfig struct {
// Monitoring Spotlight status
// SearchableIndexDidThrottle — Tells the delegate that indexing is being throttled.
SearchableIndexDidThrottle func(searchableIndex CSSearchableIndex)
// SearchableIndexDidFinishThrottle — Tells the delegate that the index throttling has finished.
SearchableIndexDidFinishThrottle func(searchableIndex CSSearchableIndex)
}
CSSearchableIndexDelegateConfig holds optional typed callbacks for CSSearchableIndexDelegate methods. Set non-nil fields to register the corresponding Objective-C delegate method. Methods with nil callbacks are not registered, so [NSObject.RespondsToSelector] returns false for them — matching the Objective-C delegate pattern exactly.
See Apple Documentation for protocol details.
type CSSearchableIndexDelegateObject ¶
type CSSearchableIndexDelegateObject struct {
objectivec.Object
}
CSSearchableIndexDelegateObject wraps an existing Objective-C object that conforms to the CSSearchableIndexDelegate protocol.
func CSSearchableIndexDelegateObjectFromID ¶
func CSSearchableIndexDelegateObjectFromID(id objc.ID) CSSearchableIndexDelegateObject
CSSearchableIndexDelegateObjectFromID constructs a CSSearchableIndexDelegateObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func NewCSSearchableIndexDelegate ¶
func NewCSSearchableIndexDelegate(config CSSearchableIndexDelegateConfig) CSSearchableIndexDelegateObject
NewCSSearchableIndexDelegate creates an Objective-C object implementing the CSSearchableIndexDelegate protocol.
Each call registers a unique Objective-C class containing only the methods set in config. This means [NSObject.RespondsToSelector] works correctly for optional delegate methods — only non-nil callbacks are registered.
The returned CSSearchableIndexDelegateObject satisfies the CSSearchableIndexDelegate interface and can be passed directly to SetDelegate and similar methods.
See Apple Documentation for protocol details.
func (CSSearchableIndexDelegateObject) BaseObject ¶
func (o CSSearchableIndexDelegateObject) BaseObject() objectivec.Object
func (CSSearchableIndexDelegateObject) DataForSearchableIndexItemIdentifierTypeIdentifierError ¶
func (o CSSearchableIndexDelegateObject) DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex ICSSearchableIndex, itemIdentifier string, typeIdentifier string) (foundation.NSData, error)
func (CSSearchableIndexDelegateObject) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError ¶
func (o CSSearchableIndexDelegateObject) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex ICSSearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool) (foundation.NSURL, error)
func (CSSearchableIndexDelegateObject) SearchableIndexDidFinishThrottle ¶
func (o CSSearchableIndexDelegateObject) SearchableIndexDidFinishThrottle(searchableIndex ICSSearchableIndex)
Tells the delegate that the index throttling has finished.
searchableIndex: The index that was throttled.
Discussion ¶
In some situations, such as when the device is using battery only, the system may throttle indexing to save power. You can implement this method to be notified when throttling is finished so that your app can resume its standard indexing behavior.
func (CSSearchableIndexDelegateObject) SearchableIndexDidThrottle ¶
func (o CSSearchableIndexDelegateObject) SearchableIndexDidThrottle(searchableIndex ICSSearchableIndex)
Tells the delegate that indexing is being throttled.
searchableIndex: The indexing that’s being throttled.
Discussion ¶
In some situations, such as when the device is using battery only, the system may throttle indexing to save power. You can implement this method to be notified of this situation so that you can respond by, for example, prioritizing the items to index.
func (CSSearchableIndexDelegateObject) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler ¶
func (o CSSearchableIndexDelegateObject) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex ICSSearchableIndex, acknowledgementHandler VoidHandler)
Tells the delegate to reindex all searchable data and clear all local state information.
searchableIndex: The index in which to reindex the searchable data. The delegate or app extension should pass `searchableIndex` to CSSearchableIndex.IndexSearchableItemsCompletionHandler.
acknowledgementHandler: The handler to call after all client state has been saved. Note that if the app passes client state information in a batch (for example, by calling CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler), the acknowledgement handler can be called immediately.
The delegate or app extension must call the acknowledgement handler after all client state information has been saved, so that the indexer can call this method again in case of a crash.
Discussion ¶
Typically, the index tells the delegate to reindex its searchable data and clear local state when the index has been lost. An app extension should not use the index passed in `searchableIndex` when a custom data protection class is needed.
func (CSSearchableIndexDelegateObject) SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler ¶
func (o CSSearchableIndexDelegateObject) SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex ICSSearchableIndex, identifiers []string, acknowledgementHandler VoidHandler)
Tells the delegate to reindex the searchable items associated with the specified identifiers.
searchableIndex: The index in which to reindex the specified searchable data. To update the state of the items, the delegate or app extension should call CSSearchableIndex.IndexSearchableItemsCompletionHandler passing in `searchableIndex`.
identifiers: An array of identifiers that specify searchable items.
acknowledgementHandler: The handler to call after all client state has been saved. Note that if the app passes client state information in a batch (for example, by calling CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler), the acknowledgement handler can be called immediately.
The delegate or app extension must call the acknowledgement handler after all client state information has been saved, so that the indexer can call this method again in case of a crash.
Discussion ¶
An app extension should not use the index passed in `searchableIndex` when a custom data protection class is needed.
func (CSSearchableIndexDelegateObject) SearchableItemsDidUpdate ¶
func (o CSSearchableIndexDelegateObject) SearchableItemsDidUpdate(items []CSSearchableItem)
Tells the delegate that the framework updated the list of searchable items.
items: The items the framework updated.
Discussion ¶
The framework calls this method when it updates an item with specific attributes; see CSSearchableItem.UpdateListenerOptions for Apple Intelligence attributes.
func (CSSearchableIndexDelegateObject) SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler ¶
func (o CSSearchableIndexDelegateObject) SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler(identifiers []string, protectionClass foundation.NSFileProtectionType, searchableItemsHandler CSSearchableItemArrayHandler)
func (CSSearchableIndexDelegateObject) SearchableItemsForIdentifiersSearchableItemsHandler ¶
func (o CSSearchableIndexDelegateObject) SearchableItemsForIdentifiersSearchableItemsHandler(identifiers []string, searchableItemsHandler CSSearchableItemArrayHandler)
Requests that the delegate provide searchable items for the provided identifiers.
identifiers: An array of strings that represent the identifiers.
searchableItemsHandler: A method the framework calls that provides an array of CSSearchableItem objects.
Discussion ¶
Use this method to provide the framework with a list of identifiers to search for.
type CSSearchableItem ¶
type CSSearchableItem struct {
objectivec.Object
}
The details of your app-specific content that someone might search for on their devices.
Overview ¶
A CSSearchableItem uniquely identifies a part of your app’s content, and provides the metadata that Spotlight indexes and uses to find that content later. As part of indexing your app’s content, you create searchable items and fill them with details about your app’s content and where to find it. After indexing the content, you can then execute queries using the Core Spotlight APIs to find the items you indexed. People can also use the system’s Spotlight search interface to find your app’s content.
When you create or update content in your app, create a CSSearchableItem for that content if you want it to be searchable. A searchable item contains identification strings you use to locate that item in your content and a CSSearchableItemAttributeSet object with details about the item. For the metadata, you typically want to provide values for the CSSearchableItemAttributeSet.Title, CSSearchableItemAttributeSet.DisplayName, and CSSearchableItemAttributeSet.ContentType attributes at a minimum. If you’re indexing a file on disk, provide a value for the CSSearchableItemAttributeSet.ContentURL attribute. Fill in as many other attributes as makes sense for the content you’re indexing.
After creating a searchable item, index it using a CSSearchableIndex object. As you update your app’s content, update your CSSearchableItem objects for that content and index them right away. If you delete content, similarly delete the searchable items from the index. Keeping your app’s indexes current ensures that searches return valid information. For more information on indexing your content, see Adding your app’s content to Spotlight indexes.
Getting a searchable item ¶
- CSSearchableItem.InitWithUniqueIdentifierDomainIdentifierAttributeSet: Returns a searchable item associated with the specified identifier, domain identifier, and attribute set.
- CSSearchableItem.InitWithCoder
Setting attributes on a searchable item ¶
- CSSearchableItem.UniqueIdentifier: The value that uniquely identifies the searchable item within your app.
- CSSearchableItem.SetUniqueIdentifier
- CSSearchableItem.DomainIdentifier: An optional identifier that represents the domain or owner of the item.
- CSSearchableItem.SetDomainIdentifier
- CSSearchableItem.AttributeSet: The set of attributes that contain metadata associated with the item in a CSSearchableItemAttributeSet(<https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet>) object.
- CSSearchableItem.SetAttributeSet
- CSSearchableItem.ExpirationDate: The date after which the searchable item should no longer exist.
- CSSearchableItem.SetExpirationDate
- CSSearchableItem.IsUpdate: A Boolean value that indicates whether to treat the item as an update instead of a new item.
- CSSearchableItem.SetIsUpdate
- CSSearchableItem.UpdateListenerOptions
- CSSearchableItem.SetUpdateListenerOptions
Comparing items ¶
- CSSearchableItem.CompareByRank: Compares two items by rank and returns the result.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItem
func CSSearchableItemFromID ¶
func CSSearchableItemFromID(id objc.ID) CSSearchableItem
CSSearchableItemFromID constructs a CSSearchableItem from an objc.ID.
The details of your app-specific content that someone might search for on their devices.
func NewCSSearchableItem ¶
func NewCSSearchableItem() CSSearchableItem
NewCSSearchableItem creates a new CSSearchableItem instance.
func NewCSSearchableItemWithCoder ¶
func NewCSSearchableItemWithCoder(coder foundation.INSCoder) CSSearchableItem
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItem/init(coder:)
func NewCSSearchableItemWithUniqueIdentifierDomainIdentifierAttributeSet ¶
func NewCSSearchableItemWithUniqueIdentifierDomainIdentifierAttributeSet(uniqueIdentifier string, domainIdentifier string, attributeSet ICSSearchableItemAttributeSet) CSSearchableItem
Returns a searchable item associated with the specified identifier, domain identifier, and attribute set.
uniqueIdentifier: The unique identifier for the item. If you specify [NULL], an identifier is generated automatically.
domainIdentifier: An identifier for a domain, such as an album, that helps you group items together in a way that makes sense.
attributeSet: A set of properties that specify the metadata you want to display about an item in a search result. See CSSearchableItemAttributeSet for the types of properties you can use.
Return Value ¶
A searchable item that’s associated with the specified identifier, domain identifier, and attribute set.
func (CSSearchableItem) AttributeSet ¶
func (c CSSearchableItem) AttributeSet() ICSSearchableItemAttributeSet
The set of attributes that contain metadata associated with the item in a CSSearchableItemAttributeSet object.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItem/attributeSet
func (CSSearchableItem) Autorelease ¶
func (c CSSearchableItem) Autorelease() CSSearchableItem
Autorelease adds the receiver to the current autorelease pool.
func (CSSearchableItem) CompareByRank ¶
func (c CSSearchableItem) CompareByRank(other ICSSearchableItem) foundation.ComparisonResult
Compares two items by rank and returns the result.
other: The other item to compare against the current one.
Return Value ¶
A comparison result that indicates the ranked order of the items.
Discussion ¶
Call this function when you want to compare the current item with the one you specify. The method compares the ranks of the items.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItem/compare(byRank:)
func (CSSearchableItem) DomainIdentifier ¶
func (c CSSearchableItem) DomainIdentifier() string
An optional identifier that represents the domain or owner of the item.
Discussion ¶
Specify a domain identifier to group items together and to make it easy to delete groups of items from the index. For example, you might specify an identifier for a mailbox in an account whose indexed data you want to remove when the account is deleted. In this example, CSSearchableItem.DomainIdentifier should be of the form `.`, where neither “ nor “ contain periods. To delete all items associated with the specified account and mailbox, you can call CSSearchableIndex.DeleteSearchableItemsWithDomainIdentifiersCompletionHandler with a CSSearchableItem.DomainIdentifier of `.`. Or to delete all items associated with all mailboxes in the specified account, you can call CSSearchableIndex.DeleteSearchableItemsWithDomainIdentifiersCompletionHandler with a CSSearchableItem.DomainIdentifier of “.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItem/domainIdentifier
func (CSSearchableItem) EncodeWithCoder ¶
func (c CSSearchableItem) EncodeWithCoder(coder foundation.INSCoder)
func (CSSearchableItem) ExpirationDate ¶
func (c CSSearchableItem) ExpirationDate() foundation.NSDate
The date after which the searchable item should no longer exist.
Discussion ¶
If you don’t set the CSSearchableItem.ExpirationDate property appropriately, the system automatically expires the item after a period of time.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItem/expirationDate
func (CSSearchableItem) Init ¶
func (c CSSearchableItem) Init() CSSearchableItem
Init initializes the instance.
func (CSSearchableItem) InitWithCoder ¶
func (c CSSearchableItem) InitWithCoder(coder foundation.INSCoder) CSSearchableItem
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItem/init(coder:)
func (CSSearchableItem) InitWithUniqueIdentifierDomainIdentifierAttributeSet ¶
func (c CSSearchableItem) InitWithUniqueIdentifierDomainIdentifierAttributeSet(uniqueIdentifier string, domainIdentifier string, attributeSet ICSSearchableItemAttributeSet) CSSearchableItem
Returns a searchable item associated with the specified identifier, domain identifier, and attribute set.
uniqueIdentifier: The unique identifier for the item. If you specify [NULL], an identifier is generated automatically.
domainIdentifier: An identifier for a domain, such as an album, that helps you group items together in a way that makes sense.
attributeSet: A set of properties that specify the metadata you want to display about an item in a search result. See CSSearchableItemAttributeSet for the types of properties you can use.
Return Value ¶
A searchable item that’s associated with the specified identifier, domain identifier, and attribute set.
func (CSSearchableItem) IsUpdate ¶
func (c CSSearchableItem) IsUpdate() bool
A Boolean value that indicates whether to treat the item as an update instead of a new item.
Discussion ¶
Set the value of this property to `true` if the item represents an update to information already in the index. Marking an item as an update makes the indexing process more efficient. If this property is `false` and the system encounters an item with the same identifier in the index, it deletes the old item and then inserts the new one. When the property is `true`, it updates the existing item, which saves time. If this property is `true` and the item doesn’t exist in the index, the system ignores the request to index the item and doesn’t create a new item.
When configuring the attributes for the item, set an attribute to `nil` to remove its value.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItem/isUpdate
func (CSSearchableItem) SetAttributeSet ¶
func (c CSSearchableItem) SetAttributeSet(value ICSSearchableItemAttributeSet)
func (CSSearchableItem) SetDomainIdentifier ¶
func (c CSSearchableItem) SetDomainIdentifier(value string)
func (CSSearchableItem) SetExpirationDate ¶
func (c CSSearchableItem) SetExpirationDate(value foundation.NSDate)
func (CSSearchableItem) SetIsUpdate ¶
func (c CSSearchableItem) SetIsUpdate(value bool)
func (CSSearchableItem) SetUniqueIdentifier ¶
func (c CSSearchableItem) SetUniqueIdentifier(value string)
func (CSSearchableItem) SetUpdateListenerOptions ¶
func (c CSSearchableItem) SetUpdateListenerOptions(value CSSearchableItemUpdateListenerOptions)
func (CSSearchableItem) UniqueIdentifier ¶
func (c CSSearchableItem) UniqueIdentifier() string
The value that uniquely identifies the searchable item within your app.
Discussion ¶
This property is required because it’s the only way to identify searchable items in the index when you need to access or delete them. When you create a searchable item, the system generates a UUID by default, but you can replace the default value with a unique identifier that makes sense in the context of your app. If you want to use a custom value for CSSearchableItem.UniqueIdentifier, be sure to set it before the item is indexed for the first time.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItem/uniqueIdentifier
func (CSSearchableItem) UpdateListenerOptions ¶
func (c CSSearchableItem) UpdateListenerOptions() CSSearchableItemUpdateListenerOptions
type CSSearchableItemArrayHandler ¶
type CSSearchableItemArrayHandler = func(*[]CSSearchableItem)
CSSearchableItemArrayHandler handles A method the framework calls that provides an array of CSSearchableItem objects.
Used by:
- CSIndexExtensionRequestHandler.SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler
- CSIndexExtensionRequestHandler.SearchableItemsForIdentifiersSearchableItemsHandler
- [CSSearchableIndexDelegate.SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler]
- [CSSearchableIndexDelegate.SearchableItemsForIdentifiersSearchableItemsHandler]
type CSSearchableItemAttributeSet ¶
type CSSearchableItemAttributeSet struct {
objectivec.Object
}
The detailed metadata for a searchable item.
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 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, 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 CSSearchableItemAttributeSet.ContentTypeTree property so your custom attribute inherits from a known type.
Creating an attribute set ¶
- CSSearchableItemAttributeSet.InitWithContentType: Creates an attribute set for the specified content type.
- CSSearchableItemAttributeSet.InitWithCoder
Accessing custom attributes ¶
- CSSearchableItemAttributeSet.SetValueForCustomKey: Sets the value for a custom attribute key.
- CSSearchableItemAttributeSet.ValueForCustomKey: Returns the value associated with the specified custom attribute key.
Handling Apple Intelligence prioritization and summarization ¶
- CSSearchableItemAttributeSet.IsPriority: A Boolean value that indicates whether the mail or messages content represents a prioritized item.
- CSSearchableItemAttributeSet.TextContentSummary: A string that presents the Apple Intelligence summarization of the item.
- CSSearchableItemAttributeSet.TranscribedTextContent: A string that represents the text the system transcribed.
- CSSearchableItemAttributeSet.SetTranscribedTextContent
Providing item representations ¶
- CSSearchableItemAttributeSet.ProviderDataTypeIdentifiers: An array of identifiers that corresponds to data representations the delegate provides.
- CSSearchableItemAttributeSet.SetProviderDataTypeIdentifiers
- CSSearchableItemAttributeSet.ProviderFileTypeIdentifiers: An array of identifiers that corresponds to file representations the delegate provides.
- CSSearchableItemAttributeSet.SetProviderFileTypeIdentifiers
- CSSearchableItemAttributeSet.ProviderInPlaceFileTypeIdentifiers: An array of identifiers that corresponds to in-place file representations the delegate provides.
- CSSearchableItemAttributeSet.SetProviderInPlaceFileTypeIdentifiers
Describing general attributes ¶
- CSSearchableItemAttributeSet.AlternateNames: An array of localized strings that represent alternate display names for the item.
- CSSearchableItemAttributeSet.SetAlternateNames
- CSSearchableItemAttributeSet.ContentType: The uniform type identifier (UTI) of the item.
- CSSearchableItemAttributeSet.SetContentType
- CSSearchableItemAttributeSet.ContentTypeTree: An attribute type that identifies a custom hierarchy of types to describe the attributes of your item.
- CSSearchableItemAttributeSet.SetContentTypeTree
- CSSearchableItemAttributeSet.ContentURL: The file URL of the content to index.
- CSSearchableItemAttributeSet.SetContentURL
- CSSearchableItemAttributeSet.DarkThumbnailURL: The local file URL of the thumbnail image for the item when Dark Mode is active.
- CSSearchableItemAttributeSet.SetDarkThumbnailURL
- CSSearchableItemAttributeSet.DisplayName: A localized string that contains the name of the item, suitable to display in the user interface.
- CSSearchableItemAttributeSet.SetDisplayName
- CSSearchableItemAttributeSet.Keywords: An array of keywords associated with the item, such as work, birthday, important, and so on.
- CSSearchableItemAttributeSet.SetKeywords
- CSSearchableItemAttributeSet.MetadataModificationDate: The date on which the last metadata attribute was changed.
- CSSearchableItemAttributeSet.SetMetadataModificationDate
- CSSearchableItemAttributeSet.Path: The complete path to the item.
- CSSearchableItemAttributeSet.SetPath
- CSSearchableItemAttributeSet.RankingHint: A number that indicates the relative importance of the item among other items from the app.
- CSSearchableItemAttributeSet.SetRankingHint
- CSSearchableItemAttributeSet.RelatedUniqueIdentifier: The unique identifier for the item to which the activity is related.
- CSSearchableItemAttributeSet.SetRelatedUniqueIdentifier
- CSSearchableItemAttributeSet.ThumbnailData: Image data that represents the thumbnail of the item.
- CSSearchableItemAttributeSet.SetThumbnailData
- CSSearchableItemAttributeSet.ThumbnailURL: The local file URL of the thumbnail image for the item.
- CSSearchableItemAttributeSet.SetThumbnailURL
- CSSearchableItemAttributeSet.Title: The title of the item.
- CSSearchableItemAttributeSet.SetTitle
- CSSearchableItemAttributeSet.DomainIdentifier: An identifier that represents the domain or owner of the item.
- CSSearchableItemAttributeSet.SetDomainIdentifier
- CSSearchableItemAttributeSet.WeakRelatedUniqueIdentifier: The unique identifier for the item to which the activity is related, but not linked.
- CSSearchableItemAttributeSet.SetWeakRelatedUniqueIdentifier
Describing document content ¶
- CSSearchableItemAttributeSet.Audiences: A class of entity for which the item is intended or useful.
- CSSearchableItemAttributeSet.SetAudiences
- CSSearchableItemAttributeSet.ContentDescription: A description of the item’s content.
- CSSearchableItemAttributeSet.SetContentDescription
- CSSearchableItemAttributeSet.Creator: The name of the app that created the content.
- CSSearchableItemAttributeSet.SetCreator
- CSSearchableItemAttributeSet.EncodingApplications: The name of the apps that converted the original content into a PDF stream.
- CSSearchableItemAttributeSet.SetEncodingApplications
- CSSearchableItemAttributeSet.FileSize: The size of the document file.
- CSSearchableItemAttributeSet.SetFileSize
- CSSearchableItemAttributeSet.FontNames: An array of font names the document uses.
- CSSearchableItemAttributeSet.SetFontNames
- CSSearchableItemAttributeSet.Identifier: A formal identifier that references the document the item represents.
- CSSearchableItemAttributeSet.SetIdentifier
- CSSearchableItemAttributeSet.Kind: A description of the kind of document the item represents.
- CSSearchableItemAttributeSet.SetKind
- CSSearchableItemAttributeSet.PageCount: The number of pages in the document.
- CSSearchableItemAttributeSet.SetPageCount
- CSSearchableItemAttributeSet.PageHeight: The height of the document page, in points (72 points per inch).
- CSSearchableItemAttributeSet.SetPageHeight
- CSSearchableItemAttributeSet.PageWidth: The width of the document page, in points (72 points per inch).
- CSSearchableItemAttributeSet.SetPageWidth
- CSSearchableItemAttributeSet.SecurityMethod: The security method (a type of encryption) that protects the document file.
- CSSearchableItemAttributeSet.SetSecurityMethod
- CSSearchableItemAttributeSet.Subject: The subject of the document.
- CSSearchableItemAttributeSet.SetSubject
- CSSearchableItemAttributeSet.Theme: The theme of the document.
- CSSearchableItemAttributeSet.SetTheme
Describing user involvement ¶
- CSSearchableItemAttributeSet.UserCreated: A value that indicates the user created the item.
- CSSearchableItemAttributeSet.SetUserCreated
- CSSearchableItemAttributeSet.UserCurated: A value that indicates the user selected the item.
- CSSearchableItemAttributeSet.SetUserCurated
- CSSearchableItemAttributeSet.UserOwned: A value that indicates the user purchased or owns the item.
- CSSearchableItemAttributeSet.SetUserOwned
Describing events ¶
- CSSearchableItemAttributeSet.AllDay: A value that indicates if the event covers an entire day.
- CSSearchableItemAttributeSet.SetAllDay
- CSSearchableItemAttributeSet.CompletionDate: The date on which the item was completed.
- CSSearchableItemAttributeSet.SetCompletionDate
- CSSearchableItemAttributeSet.DueDate: The date on which the item is due.
- CSSearchableItemAttributeSet.SetDueDate
- CSSearchableItemAttributeSet.EndDate: The end date for the item.
- CSSearchableItemAttributeSet.SetEndDate
- CSSearchableItemAttributeSet.ImportantDates: An array of important dates associated with the item.
- CSSearchableItemAttributeSet.SetImportantDates
- CSSearchableItemAttributeSet.StartDate: The start date for the item.
- CSSearchableItemAttributeSet.SetStartDate
Describing places ¶
- CSSearchableItemAttributeSet.Altitude: The altitude of the item in meters above sea level, expressed using the WGS84 datum.
- CSSearchableItemAttributeSet.SetAltitude
- CSSearchableItemAttributeSet.City: The city of the item’s origin according to guidelines that the provider establishes.
- CSSearchableItemAttributeSet.SetCity
- 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.
- CSSearchableItemAttributeSet.SetCountry
- CSSearchableItemAttributeSet.GPSAreaInformation: Information about the GPS area.
- CSSearchableItemAttributeSet.SetGPSAreaInformation
- CSSearchableItemAttributeSet.GPSDOP: The GPS dilution of precision value.
- CSSearchableItemAttributeSet.SetGPSDOP
- CSSearchableItemAttributeSet.GPSDateStamp: The date and time related to the GPS value.
- CSSearchableItemAttributeSet.SetGPSDateStamp
- CSSearchableItemAttributeSet.GPSDestBearing: The bearing to the destination point.
- CSSearchableItemAttributeSet.SetGPSDestBearing
- CSSearchableItemAttributeSet.GPSDestDistance: The distance to the destination point.
- CSSearchableItemAttributeSet.SetGPSDestDistance
- CSSearchableItemAttributeSet.GPSDestLatitude: The latitude of the destination point.
- CSSearchableItemAttributeSet.SetGPSDestLatitude
- CSSearchableItemAttributeSet.GPSDestLongitude: The longitude of the destination point.
- CSSearchableItemAttributeSet.SetGPSDestLongitude
- CSSearchableItemAttributeSet.GPSDifferental: The differential correction applied to the GPS receiver.
- CSSearchableItemAttributeSet.SetGPSDifferental
- CSSearchableItemAttributeSet.GPSMapDatum: The geodetic data that the GPS receiver uses.
- CSSearchableItemAttributeSet.SetGPSMapDatum
- CSSearchableItemAttributeSet.GPSMeasureMode: The measurement precision mode in use by the GPS receiver.
- CSSearchableItemAttributeSet.SetGPSMeasureMode
- CSSearchableItemAttributeSet.GPSProcessingMethod: The location finding method that the GPS receiver uses.
- CSSearchableItemAttributeSet.SetGPSProcessingMethod
- CSSearchableItemAttributeSet.GPSStatus: The status of the GPS receiver.
- CSSearchableItemAttributeSet.SetGPSStatus
- CSSearchableItemAttributeSet.GPSTrack: The direction of travel of the item in degrees from true north.
- CSSearchableItemAttributeSet.SetGPSTrack
- CSSearchableItemAttributeSet.Headline: A publishable string that provides a synopsis of the contents of the item.
- CSSearchableItemAttributeSet.SetHeadline
- CSSearchableItemAttributeSet.ImageDirection: The direction of the item’s image in degrees from true north.
- CSSearchableItemAttributeSet.SetImageDirection
- CSSearchableItemAttributeSet.Instructions: Instructions that concern the use of the item, such as an embargo or warning.
- CSSearchableItemAttributeSet.SetInstructions
- CSSearchableItemAttributeSet.Latitude: The latitude of the item, in degrees north of the equator, expressed using the WGS84 datum.
- CSSearchableItemAttributeSet.SetLatitude
- CSSearchableItemAttributeSet.Longitude: The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum.
- CSSearchableItemAttributeSet.SetLongitude
- CSSearchableItemAttributeSet.NamedLocation: The name of the location or point of interest associated with the item.
- CSSearchableItemAttributeSet.SetNamedLocation
- CSSearchableItemAttributeSet.Speed: The speed of the item, in kilometers per hour.
- CSSearchableItemAttributeSet.SetSpeed
- CSSearchableItemAttributeSet.StateOrProvince: The province or state of origin according to guidelines the provider establishes.
- CSSearchableItemAttributeSet.SetStateOrProvince
- CSSearchableItemAttributeSet.Timestamp: The timestamp on the item.
- CSSearchableItemAttributeSet.SetTimestamp
- CSSearchableItemAttributeSet.FullyFormattedAddress: The fully formatted address of the item, received from MapKit.
- CSSearchableItemAttributeSet.SetFullyFormattedAddress
- CSSearchableItemAttributeSet.PostalCode: The postal code for the item according to guidelines the provider establishes.
- CSSearchableItemAttributeSet.SetPostalCode
- CSSearchableItemAttributeSet.SubThoroughfare: The sublocation, such as a street number, for the item according to guidelines the provider establishes.
- CSSearchableItemAttributeSet.SetSubThoroughfare
- CSSearchableItemAttributeSet.Thoroughfare: The thoroughfare, such as a street name, associated with the location for the item according to guidelines the provider establishes.
- CSSearchableItemAttributeSet.SetThoroughfare
Describing media ¶
- CSSearchableItemAttributeSet.Comment: A comment related to the media file.
- CSSearchableItemAttributeSet.SetComment
- CSSearchableItemAttributeSet.ContentCreationDate: The creation date of an edited or optimized version of the song or composition.
- CSSearchableItemAttributeSet.SetContentCreationDate
- CSSearchableItemAttributeSet.ContentModificationDate: The date on which the contents of the file was last modified.
- CSSearchableItemAttributeSet.SetContentModificationDate
- CSSearchableItemAttributeSet.ContentSources: An array of sources from which the media was obtained.
- CSSearchableItemAttributeSet.SetContentSources
- CSSearchableItemAttributeSet.Copyright: The copyright date of the content.
- CSSearchableItemAttributeSet.SetCopyright
- CSSearchableItemAttributeSet.DownloadedDate: The most recent date on which the file was downloaded or received.
- CSSearchableItemAttributeSet.SetDownloadedDate
- CSSearchableItemAttributeSet.Editors: A list of editors who have worked on the file.
- CSSearchableItemAttributeSet.SetEditors
- CSSearchableItemAttributeSet.LastUsedDate: The date on which the file was last used.
- CSSearchableItemAttributeSet.SetLastUsedDate
- CSSearchableItemAttributeSet.Participants: A list of people who are visible in an image or movie or written about in a document.
- CSSearchableItemAttributeSet.SetParticipants
- CSSearchableItemAttributeSet.Projects: A list of projects of which this file is a part.
- CSSearchableItemAttributeSet.SetProjects
- CSSearchableItemAttributeSet.AddedDate: The date on which the item was moved into its current location.
- CSSearchableItemAttributeSet.SetAddedDate
- CSSearchableItemAttributeSet.Codecs: The codecs used to encode/decode the media.
- CSSearchableItemAttributeSet.SetCodecs
- CSSearchableItemAttributeSet.ContactKeywords: A list of contacts who are associated with the content in some way, not including the author.
- CSSearchableItemAttributeSet.SetContactKeywords
- CSSearchableItemAttributeSet.DeliveryType: The delivery type of the file.
- CSSearchableItemAttributeSet.SetDeliveryType
- CSSearchableItemAttributeSet.Duration: The duration (if appropriate) of the content of the file, in seconds.
- CSSearchableItemAttributeSet.SetDuration
- CSSearchableItemAttributeSet.MediaTypes: The media types present in the content.
- CSSearchableItemAttributeSet.SetMediaTypes
- CSSearchableItemAttributeSet.Organizations: A list of companies or organizations that created the content.
- CSSearchableItemAttributeSet.SetOrganizations
- CSSearchableItemAttributeSet.Streamable: A value that indicates if the content is prepared for streaming.
- CSSearchableItemAttributeSet.SetStreamable
- CSSearchableItemAttributeSet.TotalBitRate: The total bit rate of the media, combining audio and video.
- CSSearchableItemAttributeSet.SetTotalBitRate
- CSSearchableItemAttributeSet.AudioBitRate: The audio bit rate of the media.
- CSSearchableItemAttributeSet.SetAudioBitRate
- CSSearchableItemAttributeSet.Version: A version string associated with the file.
- CSSearchableItemAttributeSet.SetVersion
- CSSearchableItemAttributeSet.VideoBitRate: The video bit rate of the media.
- CSSearchableItemAttributeSet.SetVideoBitRate
- CSSearchableItemAttributeSet.Contributors: A list of people, organizations, or services that made contributions to the media content.
- CSSearchableItemAttributeSet.SetContributors
- CSSearchableItemAttributeSet.Languages: A list of the included languages for the intellectual content of the media.
- CSSearchableItemAttributeSet.SetLanguages
- CSSearchableItemAttributeSet.Publishers: A list of people, organizations, services, or other entities responsible for making the media available.
- CSSearchableItemAttributeSet.SetPublishers
- CSSearchableItemAttributeSet.Rights: A link to information about the rights held in and over the media.
- CSSearchableItemAttributeSet.SetRights
- CSSearchableItemAttributeSet.Role: Indicates the role of the content creator.
- CSSearchableItemAttributeSet.SetRole
- CSSearchableItemAttributeSet.ContentRating: A value that indicates if the media contains explicit content.
- CSSearchableItemAttributeSet.SetContentRating
- CSSearchableItemAttributeSet.Coverage: A list of descriptors that specify the extent or scope of the media.
- CSSearchableItemAttributeSet.SetCoverage
- CSSearchableItemAttributeSet.Director: The name of the director of the media (for example, a movie director).
- CSSearchableItemAttributeSet.SetDirector
- CSSearchableItemAttributeSet.Genre: The genre of the media.
- CSSearchableItemAttributeSet.SetGenre
- CSSearchableItemAttributeSet.Information: Information about the media.
- CSSearchableItemAttributeSet.SetInformation
- CSSearchableItemAttributeSet.Local: A value that indicates if the media is local.
- CSSearchableItemAttributeSet.SetLocal
- CSSearchableItemAttributeSet.OriginalFormat: The original format of the media.
- CSSearchableItemAttributeSet.SetOriginalFormat
- CSSearchableItemAttributeSet.OriginalSource: The original source of the media.
- CSSearchableItemAttributeSet.SetOriginalSource
- CSSearchableItemAttributeSet.Performers: A list of performers in the media.
- CSSearchableItemAttributeSet.SetPerformers
- CSSearchableItemAttributeSet.PlayCount: A user-supplied play count for the media.
- CSSearchableItemAttributeSet.SetPlayCount
- CSSearchableItemAttributeSet.Producer: The producer of the content.
- CSSearchableItemAttributeSet.SetProducer
- CSSearchableItemAttributeSet.Rating: The user-supplied rating of the media.
- CSSearchableItemAttributeSet.SetRating
- CSSearchableItemAttributeSet.RatingDescription: A description of the rating.
- CSSearchableItemAttributeSet.SetRatingDescription
- CSSearchableItemAttributeSet.URL: The URL associated with the media.
- CSSearchableItemAttributeSet.SetURL
Describing music ¶
- CSSearchableItemAttributeSet.Album: The title for a collection of audio media.
- CSSearchableItemAttributeSet.SetAlbum
- CSSearchableItemAttributeSet.Artist: The artist associated with the media.
- CSSearchableItemAttributeSet.SetArtist
- CSSearchableItemAttributeSet.AudioChannelCount: The number of channels in the audio data that the file contains.
- CSSearchableItemAttributeSet.SetAudioChannelCount
- CSSearchableItemAttributeSet.AudioEncodingApplication: The name of the application that encoded the data the audio file contains.
- CSSearchableItemAttributeSet.SetAudioEncodingApplication
- 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.
- CSSearchableItemAttributeSet.SetAudioSampleRate
- CSSearchableItemAttributeSet.AudioTrackNumber: The track number of a song or audio composition when part of an album.
- CSSearchableItemAttributeSet.SetAudioTrackNumber
- CSSearchableItemAttributeSet.Composer: The composer of the song or audio composition that the audio file contains.
- CSSearchableItemAttributeSet.SetComposer
- CSSearchableItemAttributeSet.KeySignature: The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m.
- CSSearchableItemAttributeSet.SetKeySignature
- CSSearchableItemAttributeSet.Lyricist: The lyricist or text writer for the song or audio composition that the file contains.
- CSSearchableItemAttributeSet.SetLyricist
- CSSearchableItemAttributeSet.MusicalGenre: The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical.
- CSSearchableItemAttributeSet.SetMusicalGenre
- CSSearchableItemAttributeSet.RecordingDate: The recording date of the song or composition.
- CSSearchableItemAttributeSet.SetRecordingDate
- CSSearchableItemAttributeSet.Tempo: The tempo of the music that the audio file contains, in beats per minute.
- CSSearchableItemAttributeSet.SetTempo
- 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”.
- CSSearchableItemAttributeSet.SetTimeSignature
- CSSearchableItemAttributeSet.GeneralMIDISequence: A value that indicates whether the MIDI sequence the file contains is set up for use with a general MIDI device.
- CSSearchableItemAttributeSet.SetGeneralMIDISequence
- CSSearchableItemAttributeSet.MusicalInstrumentCategory: The category of the instrument associated with the audio file.
- CSSearchableItemAttributeSet.SetMusicalInstrumentCategory
- CSSearchableItemAttributeSet.MusicalInstrumentName: The name of an instrument within the context of an instrument category.
- CSSearchableItemAttributeSet.SetMusicalInstrumentName
Describing images ¶
- CSSearchableItemAttributeSet.ISOSpeed: The ISO speed setting at the time the camera captured the image.
- CSSearchableItemAttributeSet.SetISOSpeed
- CSSearchableItemAttributeSet.AcquisitionMake: The manufacturer of the device that captured the image.
- CSSearchableItemAttributeSet.SetAcquisitionMake
- CSSearchableItemAttributeSet.AcquisitionModel: The model of the device that captured the image.
- CSSearchableItemAttributeSet.SetAcquisitionModel
- CSSearchableItemAttributeSet.Aperture: The size of the lens aperture at the time the camera captured the image, as a log-scale APEX value.
- CSSearchableItemAttributeSet.SetAperture
- CSSearchableItemAttributeSet.BitsPerSample: The number of bits per sample.
- CSSearchableItemAttributeSet.SetBitsPerSample
- CSSearchableItemAttributeSet.CameraOwner: The owner of the camera that captured the image.
- CSSearchableItemAttributeSet.SetCameraOwner
- CSSearchableItemAttributeSet.ColorSpace: The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr.
- CSSearchableItemAttributeSet.SetColorSpace
- CSSearchableItemAttributeSet.FlashOn: A value that indicates if the camera used a flash to capture the image.
- CSSearchableItemAttributeSet.SetFlashOn
- CSSearchableItemAttributeSet.FocalLength: The actual focal length of the lens, in millimeters.
- CSSearchableItemAttributeSet.SetFocalLength
- CSSearchableItemAttributeSet.FocalLength35mm: A value that indicates if the focal length is 35mm.
- CSSearchableItemAttributeSet.SetFocalLength35mm
- CSSearchableItemAttributeSet.LayerNames: An array that contains the names of the various layers in the file.
- CSSearchableItemAttributeSet.SetLayerNames
- CSSearchableItemAttributeSet.LensModel: The model of the lens that captured the image.
- CSSearchableItemAttributeSet.SetLensModel
- CSSearchableItemAttributeSet.Orientation: The orientation of the data.
- CSSearchableItemAttributeSet.SetOrientation
- CSSearchableItemAttributeSet.PixelCount: The total number of pixels in the image.
- CSSearchableItemAttributeSet.SetPixelCount
- CSSearchableItemAttributeSet.PixelHeight: The height of the item, such as image or video frame height, in pixels.
- CSSearchableItemAttributeSet.SetPixelHeight
- CSSearchableItemAttributeSet.PixelWidth: The width of the item, such as image or video frame width, in pixels.
- CSSearchableItemAttributeSet.SetPixelWidth
- CSSearchableItemAttributeSet.WhiteBalance: The white balance setting when the camera captured the image.
- CSSearchableItemAttributeSet.SetWhiteBalance
- CSSearchableItemAttributeSet.EXIFGPSVersion: The version of GPS Info IFD header that was used to generate the metadata for the image.
- CSSearchableItemAttributeSet.SetEXIFGPSVersion
- CSSearchableItemAttributeSet.EXIFVersion: The version of the EXIF header that was used to generate the metadata for the image.
- CSSearchableItemAttributeSet.SetEXIFVersion
- CSSearchableItemAttributeSet.ExposureMode: The mode the camera used for the exposure of the image.
- CSSearchableItemAttributeSet.SetExposureMode
- CSSearchableItemAttributeSet.ExposureProgram: The class of the program the camera used to set exposure when capturing the image.
- CSSearchableItemAttributeSet.SetExposureProgram
- CSSearchableItemAttributeSet.ExposureTime: The time that the lens was open during exposure, in seconds.
- CSSearchableItemAttributeSet.SetExposureTime
- CSSearchableItemAttributeSet.ExposureTimeString: The time that the lens was open during exposure, in a string, such as “1/250 seconds”.
- CSSearchableItemAttributeSet.SetExposureTimeString
- CSSearchableItemAttributeSet.FNumber: The focal length of the lens, divided by the diameter of the aperture when the camera captured the image.
- CSSearchableItemAttributeSet.SetFNumber
- CSSearchableItemAttributeSet.HasAlphaChannel: Indicates if the image file has an alpha channel.
- CSSearchableItemAttributeSet.SetHasAlphaChannel
- CSSearchableItemAttributeSet.MaxAperture: The smallest F number of the lens.
- CSSearchableItemAttributeSet.SetMaxAperture
- CSSearchableItemAttributeSet.MeteringMode: The metering mode.
- CSSearchableItemAttributeSet.SetMeteringMode
- CSSearchableItemAttributeSet.ProfileName: The name of the color profile the camera used for the image.
- CSSearchableItemAttributeSet.SetProfileName
- CSSearchableItemAttributeSet.RedEyeOn: A value that indicates if the camera used red-eye reduction when capturing the image.
- CSSearchableItemAttributeSet.SetRedEyeOn
- CSSearchableItemAttributeSet.ResolutionHeightDPI: The resolution height of the image, in DPI.
- CSSearchableItemAttributeSet.SetResolutionHeightDPI
- CSSearchableItemAttributeSet.ResolutionWidthDPI: The resolution width of the image, in DPI.
- CSSearchableItemAttributeSet.SetResolutionWidthDPI
Describing messages ¶
- CSSearchableItemAttributeSet.HTMLContentData: The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string.
- CSSearchableItemAttributeSet.SetHTMLContentData
- CSSearchableItemAttributeSet.AccountHandles: An array of the canonical handles for the account with which the message is associated.
- CSSearchableItemAttributeSet.SetAccountHandles
- CSSearchableItemAttributeSet.AccountIdentifier: The unique identifier for the account with which the message is associated, if any.
- CSSearchableItemAttributeSet.SetAccountIdentifier
- CSSearchableItemAttributeSet.AdditionalRecipients: An array of CSPerson(<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the Cc: field in an email message.
- CSSearchableItemAttributeSet.SetAdditionalRecipients
- CSSearchableItemAttributeSet.AuthorAddresses: An array of addresses associated with the author of the message.
- CSSearchableItemAttributeSet.SetAuthorAddresses
- CSSearchableItemAttributeSet.AuthorEmailAddresses: An array of email addresses associated with the author of the message.
- CSSearchableItemAttributeSet.SetAuthorEmailAddresses
- CSSearchableItemAttributeSet.AuthorNames: An array of names representing the authors who have worked on the message.
- CSSearchableItemAttributeSet.SetAuthorNames
- CSSearchableItemAttributeSet.Authors: An array of CSPerson(<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the From: field in an item.
- CSSearchableItemAttributeSet.SetAuthors
- CSSearchableItemAttributeSet.EmailAddresses: An array of email addresses associated with the message.
- CSSearchableItemAttributeSet.SetEmailAddresses
- CSSearchableItemAttributeSet.EmailHeaders: A dictionary that contains all the headers of the message.
- CSSearchableItemAttributeSet.SetEmailHeaders
- CSSearchableItemAttributeSet.HiddenAdditionalRecipients: An array of CSPerson(<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the Bcc: field in an email message.
- CSSearchableItemAttributeSet.SetHiddenAdditionalRecipients
- CSSearchableItemAttributeSet.InstantMessageAddresses: An array of instant message addresses for the message.
- CSSearchableItemAttributeSet.SetInstantMessageAddresses
- CSSearchableItemAttributeSet.LikelyJunk: A value that indicates if the message is likely to be considered junk.
- CSSearchableItemAttributeSet.SetLikelyJunk
- CSSearchableItemAttributeSet.MailboxIdentifiers: An array of mailbox identifiers associated with the message.
- CSSearchableItemAttributeSet.SetMailboxIdentifiers
- CSSearchableItemAttributeSet.PhoneNumbers: An array of phone numbers associated with the message.
- CSSearchableItemAttributeSet.SetPhoneNumbers
- CSSearchableItemAttributeSet.PrimaryRecipients: An array of CSPerson(<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the To: field in an email message.
- CSSearchableItemAttributeSet.SetPrimaryRecipients
- CSSearchableItemAttributeSet.RecipientAddresses: An array of addresses associated with the recipients of the message.
- CSSearchableItemAttributeSet.SetRecipientAddresses
- CSSearchableItemAttributeSet.RecipientEmailAddresses: An array of email addresses associated with the recipient.
- CSSearchableItemAttributeSet.SetRecipientEmailAddresses
- CSSearchableItemAttributeSet.RecipientNames: An array of names representing the recipients of this message.
- CSSearchableItemAttributeSet.SetRecipientNames
- CSSearchableItemAttributeSet.TextContent: The textual content of the message.
- CSSearchableItemAttributeSet.SetTextContent
Describing containment ¶
- CSSearchableItemAttributeSet.ContainerDisplayName: A localized string that specifies the name of a container to which the item belongs, suitable to display in the user interface.
- CSSearchableItemAttributeSet.SetContainerDisplayName
- CSSearchableItemAttributeSet.ContainerIdentifier: The identifier of the container to which the item belongs.
- CSSearchableItemAttributeSet.SetContainerIdentifier
- CSSearchableItemAttributeSet.ContainerOrder: The order of the item within the container.
- CSSearchableItemAttributeSet.SetContainerOrder
- CSSearchableItemAttributeSet.ContainerTitle: The title of the container to which the item belongs.
- CSSearchableItemAttributeSet.SetContainerTitle
Describing supporting actions ¶
- CSSearchableItemAttributeSet.SupportsNavigation: A value that indicates whether the item contains information sufficient to provide navigation to the location it represents.
- CSSearchableItemAttributeSet.SetSupportsNavigation
- CSSearchableItemAttributeSet.SupportsPhoneCall: A value that indicates whether the item contains information sufficient to allow a phone call to a number associated with the item.
- CSSearchableItemAttributeSet.SetSupportsPhoneCall
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet
func CSSearchableItemAttributeSetFromID ¶
func CSSearchableItemAttributeSetFromID(id objc.ID) CSSearchableItemAttributeSet
CSSearchableItemAttributeSetFromID constructs a CSSearchableItemAttributeSet from an objc.ID.
The detailed metadata for a searchable item.
func NewCSSearchableItemAttributeSet ¶
func NewCSSearchableItemAttributeSet() CSSearchableItemAttributeSet
NewCSSearchableItemAttributeSet creates a new CSSearchableItemAttributeSet instance.
func NewCSSearchableItemAttributeSetWithCoder ¶
func NewCSSearchableItemAttributeSetWithCoder(coder foundation.INSCoder) CSSearchableItemAttributeSet
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/init(coder:)
func NewCSSearchableItemAttributeSetWithContentType ¶
func NewCSSearchableItemAttributeSetWithContentType(contentType uniformtypeidentifiers.UTType) CSSearchableItemAttributeSet
Creates an attribute set for the specified content type.
contentType: The type of the content. For example, png or movie.
Return Value ¶
An attribute set that represents an item of the specified content type.
func (CSSearchableItemAttributeSet) AccountHandles ¶
func (c CSSearchableItemAttributeSet) AccountHandles() []string
An array of the canonical handles for the account with which the message is associated.
Discussion ¶
Account handles can include chat handles, email addresses, phone numbers, and so on.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/accountHandles
func (CSSearchableItemAttributeSet) AccountIdentifier ¶
func (c CSSearchableItemAttributeSet) AccountIdentifier() string
The unique identifier for the account with which the message is associated, if any.
func (CSSearchableItemAttributeSet) AcquisitionMake ¶
func (c CSSearchableItemAttributeSet) AcquisitionMake() string
The manufacturer of the device that captured the image.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/acquisitionMake
func (CSSearchableItemAttributeSet) AcquisitionModel ¶
func (c CSSearchableItemAttributeSet) AcquisitionModel() string
The model of the device that captured the image.
func (CSSearchableItemAttributeSet) AddedDate ¶
func (c CSSearchableItemAttributeSet) AddedDate() foundation.NSDate
The date on which the item was moved into its current location.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/addedDate
func (CSSearchableItemAttributeSet) AdditionalRecipients ¶
func (c CSSearchableItemAttributeSet) AdditionalRecipients() []CSPerson
An array of CSPerson objects representing the content of the Cc: field in an email message.
func (CSSearchableItemAttributeSet) Album ¶
func (c CSSearchableItemAttributeSet) Album() string
The title for a collection of audio media.
Discussion ¶
The value of this property is analogous to the title of a record album or photo album.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/album
func (CSSearchableItemAttributeSet) AllDay ¶
func (c CSSearchableItemAttributeSet) AllDay() foundation.NSNumber
A value that indicates if the event covers an entire day.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/allDay
func (CSSearchableItemAttributeSet) AlternateNames ¶
func (c CSSearchableItemAttributeSet) AlternateNames() []string
An array of localized strings that represent alternate display names for the item.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/alternateNames
func (CSSearchableItemAttributeSet) Altitude ¶
func (c CSSearchableItemAttributeSet) Altitude() foundation.NSNumber
The altitude of the item in meters above sea level, expressed using the WGS84 datum.
Discussion ¶
Negative values lie below sea level.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/altitude
func (CSSearchableItemAttributeSet) Aperture ¶
func (c CSSearchableItemAttributeSet) Aperture() foundation.NSNumber
The size of the lens aperture at the time the camera captured the image, as a log-scale APEX value.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/aperture
func (CSSearchableItemAttributeSet) Artist ¶
func (c CSSearchableItemAttributeSet) Artist() string
The artist associated with the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/artist
func (CSSearchableItemAttributeSet) Audiences ¶
func (c CSSearchableItemAttributeSet) Audiences() []string
A class of entity for which the item is intended or useful.
Discussion ¶
A class of entity may be determined by the creator or the publisher of the item or by a third party.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/audiences
func (CSSearchableItemAttributeSet) AudioBitRate ¶
func (c CSSearchableItemAttributeSet) AudioBitRate() foundation.NSNumber
The audio bit rate of the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/audioBitRate
func (CSSearchableItemAttributeSet) AudioChannelCount ¶
func (c CSSearchableItemAttributeSet) AudioChannelCount() foundation.NSNumber
The number of channels in the audio data that the file contains.
Discussion ¶
The value of this property represents only the number of discreet channels of audio data found in the file. It does not indicate any audio data configuration related to a user’s speaker setup.
func (CSSearchableItemAttributeSet) AudioEncodingApplication ¶
func (c CSSearchableItemAttributeSet) AudioEncodingApplication() string
The name of the application that encoded the data the audio file contains.
func (CSSearchableItemAttributeSet) AudioSampleRate ¶
func (c CSSearchableItemAttributeSet) AudioSampleRate() foundation.NSNumber
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.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/audioSampleRate
func (CSSearchableItemAttributeSet) AudioTrackNumber ¶
func (c CSSearchableItemAttributeSet) AudioTrackNumber() foundation.NSNumber
The track number of a song or audio composition when part of an album.
func (CSSearchableItemAttributeSet) AuthorAddresses ¶
func (c CSSearchableItemAttributeSet) AuthorAddresses() []string
An array of addresses associated with the author of the message.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/authorAddresses
func (CSSearchableItemAttributeSet) AuthorEmailAddresses ¶
func (c CSSearchableItemAttributeSet) AuthorEmailAddresses() []string
An array of email addresses associated with the author of the message.
Discussion ¶
The contents of this property is not human-readable.
func (CSSearchableItemAttributeSet) AuthorNames ¶
func (c CSSearchableItemAttributeSet) AuthorNames() []string
An array of names representing the authors who have worked on the message.
Discussion ¶
A message may have zero or more authors. Although the array preserves the order of authors, it is not intended to identify the main author or represent the relative importance of authors.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/authorNames
func (CSSearchableItemAttributeSet) Authors ¶
func (c CSSearchableItemAttributeSet) Authors() []CSPerson
An array of CSPerson objects representing the content of the From: field in an item.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/authors
func (CSSearchableItemAttributeSet) Autorelease ¶
func (c CSSearchableItemAttributeSet) Autorelease() CSSearchableItemAttributeSet
Autorelease adds the receiver to the current autorelease pool.
func (CSSearchableItemAttributeSet) BitsPerSample ¶
func (c CSSearchableItemAttributeSet) BitsPerSample() foundation.NSNumber
The number of bits per sample.
Discussion ¶
The value of this property can represent the bit depth of an image (such as 8-bit or 16-bit) or the bit depth per audio sample of uncompressed audio data (such as 8, 16, 24, 32, 64, and so on).
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/bitsPerSample
func (CSSearchableItemAttributeSet) CameraOwner ¶
func (c CSSearchableItemAttributeSet) CameraOwner() string
The owner of the camera that captured the image.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/cameraOwner
func (CSSearchableItemAttributeSet) City ¶
func (c CSSearchableItemAttributeSet) City() string
The city of the item’s origin according to guidelines that the provider establishes.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/city
func (CSSearchableItemAttributeSet) Codecs ¶
func (c CSSearchableItemAttributeSet) Codecs() []string
The codecs used to encode/decode the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/codecs
func (CSSearchableItemAttributeSet) ColorSpace ¶
func (c CSSearchableItemAttributeSet) ColorSpace() string
The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/colorSpace
func (CSSearchableItemAttributeSet) Comment ¶
func (c CSSearchableItemAttributeSet) Comment() string
A comment related to the media file.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/comment
func (CSSearchableItemAttributeSet) CompletionDate ¶
func (c CSSearchableItemAttributeSet) CompletionDate() foundation.NSDate
The date on which the item was completed.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/completionDate
func (CSSearchableItemAttributeSet) Composer ¶
func (c CSSearchableItemAttributeSet) Composer() string
The composer of the song or audio composition that the audio file contains.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/composer
func (CSSearchableItemAttributeSet) ContactKeywords ¶
func (c CSSearchableItemAttributeSet) ContactKeywords() []string
A list of contacts who are associated with the content in some way, not including the author.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contactKeywords
func (CSSearchableItemAttributeSet) ContainerDisplayName ¶
func (c CSSearchableItemAttributeSet) ContainerDisplayName() string
A localized string that specifies the name of a container to which the item belongs, suitable to display in the user interface.
Discussion ¶
For example, a container display name might be the title of a series of books. When you specify the containment properties, Spotlight can treat individual items as part of an ordered set.
func (CSSearchableItemAttributeSet) ContainerIdentifier ¶
func (c CSSearchableItemAttributeSet) ContainerIdentifier() string
The identifier of the container to which the item belongs.
func (CSSearchableItemAttributeSet) ContainerOrder ¶
func (c CSSearchableItemAttributeSet) ContainerOrder() foundation.NSNumber
The order of the item within the container.
Discussion ¶
For example, if the container represents a series of books, this property specifies the order in which the books should be read.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/containerOrder
func (CSSearchableItemAttributeSet) ContainerTitle ¶
func (c CSSearchableItemAttributeSet) ContainerTitle() string
The title of the container to which the item belongs.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/containerTitle
func (CSSearchableItemAttributeSet) ContentCreationDate ¶
func (c CSSearchableItemAttributeSet) ContentCreationDate() foundation.NSDate
The creation date of an edited or optimized version of the song or composition.
Discussion ¶
This property is supplementary to CSSearchableItemAttributeSet.RecordingDate, which indicates the original recording date of the song or composition.
func (CSSearchableItemAttributeSet) ContentDescription ¶
func (c CSSearchableItemAttributeSet) ContentDescription() string
A description of the item’s content.
Discussion ¶
A description may consist of an abstract, table of contents, reference to a graphical representation of content, a free-text account of the content, or other matter.
func (CSSearchableItemAttributeSet) ContentModificationDate ¶
func (c CSSearchableItemAttributeSet) ContentModificationDate() foundation.NSDate
The date on which the contents of the file was last modified.
func (CSSearchableItemAttributeSet) ContentRating ¶
func (c CSSearchableItemAttributeSet) ContentRating() foundation.NSNumber
A value that indicates if the media contains explicit content.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentRating
func (CSSearchableItemAttributeSet) ContentSources ¶
func (c CSSearchableItemAttributeSet) ContentSources() []string
An array of sources from which the media was obtained.
Discussion ¶
The string values in this property might include the URL of the website from which the file was downloaded or information that describes the email to which the file was attached.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentSources
func (CSSearchableItemAttributeSet) ContentType ¶
func (c CSSearchableItemAttributeSet) ContentType() string
The uniform type identifier (UTI) of the item.
Discussion ¶
To learn more about UTIs, see [UTType].
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentType
func (CSSearchableItemAttributeSet) ContentTypeTree ¶
func (c CSSearchableItemAttributeSet) ContentTypeTree() []string
An attribute type that identifies a custom hierarchy of types to describe the attributes of your item.
Discussion ¶
For example, the CSSearchableItemAttributeSet.ContentTypeTree for an item whose CSSearchableItemAttributeSet.ContentType is `public.M3u()-playlist` should include `public.M3u()-playlist` and `public.Playlist()`.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentTypeTree
func (CSSearchableItemAttributeSet) ContentURL ¶
func (c CSSearchableItemAttributeSet) ContentURL() foundation.NSURL
The file URL of the content to index.
Discussion ¶
This is an optional property. An app that is also a client of iCloud Drive can set this property to allow Spotlight to deduplicate its searchable items against the iCloud Drive items. In this scenario, Spotlight does not display searchable items from iCloud Drive that have the same CSSearchableItemAttributeSet.ContentURL property.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentURL
func (CSSearchableItemAttributeSet) Contributors ¶
func (c CSSearchableItemAttributeSet) Contributors() []string
A list of people, organizations, or services that made contributions to the media content.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contributors
func (CSSearchableItemAttributeSet) Copyright ¶
func (c CSSearchableItemAttributeSet) Copyright() string
The copyright date of the content.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/copyright
func (CSSearchableItemAttributeSet) Country ¶
func (c CSSearchableItemAttributeSet) Country() string
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.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/country
func (CSSearchableItemAttributeSet) Coverage ¶
func (c CSSearchableItemAttributeSet) Coverage() []string
A list of descriptors that specify the extent or scope of the media.
Discussion ¶
The string values in this property typically include a location (such as a place name or geographic coordinates), a temporal period (such as a period label, date, or date range), or a jurisdiction (such as a named administrative entity).
It’s recommended that you select a value from a controlled vocabulary, and that when you need to specify a place or time period, you use a name instead of a numeric identifier, such as a set of coordinates or a date range.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/coverage
func (CSSearchableItemAttributeSet) Creator ¶
func (c CSSearchableItemAttributeSet) Creator() string
The name of the app that created the content.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/creator
func (CSSearchableItemAttributeSet) DarkThumbnailURL ¶
func (c CSSearchableItemAttributeSet) DarkThumbnailURL() foundation.NSURL
The local file URL of the thumbnail image for the item when Dark Mode is active.
func (CSSearchableItemAttributeSet) DeliveryType ¶
func (c CSSearchableItemAttributeSet) DeliveryType() foundation.NSNumber
The delivery type of the file.
Discussion ¶
The value of this property is 0 for fast start and 1 for RTSP.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/deliveryType
func (CSSearchableItemAttributeSet) Director ¶
func (c CSSearchableItemAttributeSet) Director() string
The name of the director of the media (for example, a movie director).
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/director
func (CSSearchableItemAttributeSet) DisplayName ¶
func (c CSSearchableItemAttributeSet) DisplayName() string
A localized string that contains the name of the item, suitable to display in the user interface.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/displayName
func (CSSearchableItemAttributeSet) DomainIdentifier ¶
func (c CSSearchableItemAttributeSet) DomainIdentifier() string
An identifier that represents the domain or owner of the item.
Discussion ¶
Specify a domain identifier to group items together and make it easier to delete them from the index. For example, to delete a user activity, set this property on the contentAttributeSet property of the NSUserActivity object and then call CSSearchableIndex.DeleteSearchableItemsWithDomainIdentifiersCompletionHandler on your app’s index.
func (CSSearchableItemAttributeSet) DownloadedDate ¶
func (c CSSearchableItemAttributeSet) DownloadedDate() foundation.NSDate
The most recent date on which the file was downloaded or received.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/downloadedDate
func (CSSearchableItemAttributeSet) DueDate ¶
func (c CSSearchableItemAttributeSet) DueDate() foundation.NSDate
The date on which the item is due.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/dueDate
func (CSSearchableItemAttributeSet) Duration ¶
func (c CSSearchableItemAttributeSet) Duration() foundation.NSNumber
The duration (if appropriate) of the content of the file, in seconds.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/duration
func (CSSearchableItemAttributeSet) EXIFGPSVersion ¶
func (c CSSearchableItemAttributeSet) EXIFGPSVersion() string
The version of GPS Info IFD header that was used to generate the metadata for the image.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exifgpsVersion
func (CSSearchableItemAttributeSet) EXIFVersion ¶
func (c CSSearchableItemAttributeSet) EXIFVersion() string
The version of the EXIF header that was used to generate the metadata for the image.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exifVersion
func (CSSearchableItemAttributeSet) Editors ¶
func (c CSSearchableItemAttributeSet) Editors() []string
A list of editors who have worked on the file.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/editors
func (CSSearchableItemAttributeSet) EmailAddresses ¶
func (c CSSearchableItemAttributeSet) EmailAddresses() []string
An array of email addresses associated with the message.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/emailAddresses
func (CSSearchableItemAttributeSet) EmailHeaders ¶
func (c CSSearchableItemAttributeSet) EmailHeaders() foundation.INSDictionary
A dictionary that contains all the headers of the message.
Discussion ¶
Dictionary keys are header names and the values are arrays of strings, because one header can occur more than once in an email message.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/emailHeaders
func (CSSearchableItemAttributeSet) EncodeWithCoder ¶
func (c CSSearchableItemAttributeSet) EncodeWithCoder(coder foundation.INSCoder)
func (CSSearchableItemAttributeSet) EncodingApplications ¶
func (c CSSearchableItemAttributeSet) EncodingApplications() []string
The name of the apps that converted the original content into a PDF stream.
func (CSSearchableItemAttributeSet) EndDate ¶
func (c CSSearchableItemAttributeSet) EndDate() foundation.NSDate
The end date for the item.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/endDate
func (CSSearchableItemAttributeSet) ExposureMode ¶
func (c CSSearchableItemAttributeSet) ExposureMode() foundation.NSNumber
The mode the camera used for the exposure of the image.
Discussion ¶
This property can have the following values:
- 0 — auto exposure - 1 — manual - 2 — auto bracket
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exposureMode
func (CSSearchableItemAttributeSet) ExposureProgram ¶
func (c CSSearchableItemAttributeSet) ExposureProgram() string
The class of the program the camera used to set exposure when capturing the image.
Discussion ¶
Can include manual, normal, aperture priority, and so on.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exposureProgram
func (CSSearchableItemAttributeSet) ExposureTime ¶
func (c CSSearchableItemAttributeSet) ExposureTime() foundation.NSNumber
The time that the lens was open during exposure, in seconds.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/exposureTime
func (CSSearchableItemAttributeSet) ExposureTimeString ¶
func (c CSSearchableItemAttributeSet) ExposureTimeString() string
The time that the lens was open during exposure, in a string, such as “1/250 seconds”.
func (CSSearchableItemAttributeSet) FNumber ¶
func (c CSSearchableItemAttributeSet) FNumber() foundation.NSNumber
The focal length of the lens, divided by the diameter of the aperture when the camera captured the image.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/fNumber
func (CSSearchableItemAttributeSet) FileSize ¶
func (c CSSearchableItemAttributeSet) FileSize() foundation.NSNumber
The size of the document file.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/fileSize
func (CSSearchableItemAttributeSet) FlashOn ¶
func (c CSSearchableItemAttributeSet) FlashOn() foundation.NSNumber
A value that indicates if the camera used a flash to capture the image.
Discussion ¶
The value of this property is 1 if the flash is on; otherwise, 0.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/flashOn
func (CSSearchableItemAttributeSet) FocalLength ¶
func (c CSSearchableItemAttributeSet) FocalLength() foundation.NSNumber
The actual focal length of the lens, in millimeters.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/focalLength
func (CSSearchableItemAttributeSet) FocalLength35mm ¶
func (c CSSearchableItemAttributeSet) FocalLength35mm() foundation.NSNumber
A value that indicates if the focal length is 35mm.
Discussion ¶
The value of this property is 1 if the focal length is 35mm; otherwise, 0.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/focalLength35mm
func (CSSearchableItemAttributeSet) FontNames ¶
func (c CSSearchableItemAttributeSet) FontNames() []string
An array of font names the document uses.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/fontNames
func (CSSearchableItemAttributeSet) FullyFormattedAddress ¶
func (c CSSearchableItemAttributeSet) FullyFormattedAddress() string
The fully formatted address of the item, received from MapKit.
func (CSSearchableItemAttributeSet) GPSAreaInformation ¶
func (c CSSearchableItemAttributeSet) GPSAreaInformation() string
Information about the GPS area.
func (CSSearchableItemAttributeSet) GPSDOP ¶
func (c CSSearchableItemAttributeSet) GPSDOP() foundation.NSNumber
The GPS dilution of precision value.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsdop
func (CSSearchableItemAttributeSet) GPSDateStamp ¶
func (c CSSearchableItemAttributeSet) GPSDateStamp() foundation.NSDate
The date and time related to the GPS value.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDateStamp
func (CSSearchableItemAttributeSet) GPSDestBearing ¶
func (c CSSearchableItemAttributeSet) GPSDestBearing() foundation.NSNumber
The bearing to the destination point.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDestBearing
func (CSSearchableItemAttributeSet) GPSDestDistance ¶
func (c CSSearchableItemAttributeSet) GPSDestDistance() foundation.NSNumber
The distance to the destination point.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDestDistance
func (CSSearchableItemAttributeSet) GPSDestLatitude ¶
func (c CSSearchableItemAttributeSet) GPSDestLatitude() foundation.NSNumber
The latitude of the destination point.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDestLatitude
func (CSSearchableItemAttributeSet) GPSDestLongitude ¶
func (c CSSearchableItemAttributeSet) GPSDestLongitude() foundation.NSNumber
The longitude of the destination point.
func (CSSearchableItemAttributeSet) GPSDifferental ¶
func (c CSSearchableItemAttributeSet) GPSDifferental() foundation.NSNumber
The differential correction applied to the GPS receiver.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsDifferental
func (CSSearchableItemAttributeSet) GPSMapDatum ¶
func (c CSSearchableItemAttributeSet) GPSMapDatum() string
The geodetic data that the GPS receiver uses.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsMapDatum
func (CSSearchableItemAttributeSet) GPSMeasureMode ¶
func (c CSSearchableItemAttributeSet) GPSMeasureMode() string
The measurement precision mode in use by the GPS receiver.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsMeasureMode
func (CSSearchableItemAttributeSet) GPSProcessingMethod ¶
func (c CSSearchableItemAttributeSet) GPSProcessingMethod() string
The location finding method that the GPS receiver uses.
func (CSSearchableItemAttributeSet) GPSStatus ¶
func (c CSSearchableItemAttributeSet) GPSStatus() string
The status of the GPS receiver.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsStatus
func (CSSearchableItemAttributeSet) GPSTrack ¶
func (c CSSearchableItemAttributeSet) GPSTrack() foundation.NSNumber
The direction of travel of the item in degrees from true north.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/gpsTrack
func (CSSearchableItemAttributeSet) GeneralMIDISequence ¶
func (c CSSearchableItemAttributeSet) GeneralMIDISequence() foundation.NSNumber
A value that indicates whether the MIDI sequence the file contains is set up for use with a general MIDI device.
Discussion ¶
When the value of this property is 1, the MIDI sequence in the file is set up for use with a general MIDI device; when the value is 0, it is not.
func (CSSearchableItemAttributeSet) Genre ¶
func (c CSSearchableItemAttributeSet) Genre() string
The genre of the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/genre
func (CSSearchableItemAttributeSet) HTMLContentData ¶
func (c CSSearchableItemAttributeSet) HTMLContentData() foundation.NSData
The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/htmlContentData
func (CSSearchableItemAttributeSet) HasAlphaChannel ¶
func (c CSSearchableItemAttributeSet) HasAlphaChannel() foundation.NSNumber
Indicates if the image file has an alpha channel.
Discussion ¶
When the value of this property is 0, no alpha channel is used; when the value is 1, an alpha channel is used.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/hasAlphaChannel
func (CSSearchableItemAttributeSet) Headline ¶
func (c CSSearchableItemAttributeSet) Headline() string
A publishable string that provides a synopsis of the contents of the item.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/headline
func (CSSearchableItemAttributeSet) HiddenAdditionalRecipients ¶
func (c CSSearchableItemAttributeSet) HiddenAdditionalRecipients() []CSPerson
An array of CSPerson objects representing the content of the Bcc: field in an email message.
func (CSSearchableItemAttributeSet) ISOSpeed ¶
func (c CSSearchableItemAttributeSet) ISOSpeed() foundation.NSNumber
The ISO speed setting at the time the camera captured the image.
Discussion ¶
Typical ISO speed values are 100, 200, 400, and so on.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/isoSpeed
func (CSSearchableItemAttributeSet) Identifier ¶
func (c CSSearchableItemAttributeSet) Identifier() string
A formal identifier that references the document the item represents.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/identifier
func (CSSearchableItemAttributeSet) ImageDirection ¶
func (c CSSearchableItemAttributeSet) ImageDirection() foundation.NSNumber
The direction of the item’s image in degrees from true north.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/imageDirection
func (CSSearchableItemAttributeSet) ImportantDates ¶
func (c CSSearchableItemAttributeSet) ImportantDates() []foundation.NSDate
An array of important dates associated with the item.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/importantDates
func (CSSearchableItemAttributeSet) Information ¶
func (c CSSearchableItemAttributeSet) Information() string
Information about the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/information
func (CSSearchableItemAttributeSet) Init ¶
func (c CSSearchableItemAttributeSet) Init() CSSearchableItemAttributeSet
Init initializes the instance.
func (CSSearchableItemAttributeSet) InitWithCoder ¶
func (c CSSearchableItemAttributeSet) InitWithCoder(coder foundation.INSCoder) CSSearchableItemAttributeSet
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/init(coder:)
func (CSSearchableItemAttributeSet) InitWithContentType ¶
func (c CSSearchableItemAttributeSet) InitWithContentType(contentType uniformtypeidentifiers.UTType) CSSearchableItemAttributeSet
Creates an attribute set for the specified content type.
contentType: The type of the content. For example, png or movie.
Return Value ¶
An attribute set that represents an item of the specified content type.
func (CSSearchableItemAttributeSet) InstantMessageAddresses ¶
func (c CSSearchableItemAttributeSet) InstantMessageAddresses() []string
An array of instant message addresses for the message.
func (CSSearchableItemAttributeSet) Instructions ¶
func (c CSSearchableItemAttributeSet) Instructions() string
Instructions that concern the use of the item, such as an embargo or warning.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/instructions
func (CSSearchableItemAttributeSet) IsPriority ¶
func (c CSSearchableItemAttributeSet) IsPriority() foundation.NSNumber
A Boolean value that indicates whether the mail or messages content represents a prioritized item.
Discussion ¶
When the value of this property is `1`, Apple Intelligence identified this email or message content as needing priority classification.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/isPriority
func (CSSearchableItemAttributeSet) KeySignature ¶
func (c CSSearchableItemAttributeSet) KeySignature() string
The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/keySignature
func (CSSearchableItemAttributeSet) Keywords ¶
func (c CSSearchableItemAttributeSet) Keywords() []string
An array of keywords associated with the item, such as work, birthday, important, and so on.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/keywords
func (CSSearchableItemAttributeSet) Kind ¶
func (c CSSearchableItemAttributeSet) Kind() string
A description of the kind of document the item represents.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/kind
func (CSSearchableItemAttributeSet) Languages ¶
func (c CSSearchableItemAttributeSet) Languages() []string
A list of the included languages for the intellectual content of the media.
Discussion ¶
See BCP 47 for best practices in using language tags.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/languages
func (CSSearchableItemAttributeSet) LastUsedDate ¶
func (c CSSearchableItemAttributeSet) LastUsedDate() foundation.NSDate
The date on which the file was last used.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/lastUsedDate
func (CSSearchableItemAttributeSet) Latitude ¶
func (c CSSearchableItemAttributeSet) Latitude() foundation.NSNumber
The latitude of the item, in degrees north of the equator, expressed using the WGS84 datum.
Discussion ¶
Negative values lie south of the equator.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/latitude
func (CSSearchableItemAttributeSet) LayerNames ¶
func (c CSSearchableItemAttributeSet) LayerNames() []string
An array that contains the names of the various layers in the file.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/layerNames
func (CSSearchableItemAttributeSet) LensModel ¶
func (c CSSearchableItemAttributeSet) LensModel() string
The model of the lens that captured the image.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/lensModel
func (CSSearchableItemAttributeSet) LikelyJunk ¶
func (c CSSearchableItemAttributeSet) LikelyJunk() foundation.NSNumber
A value that indicates if the message is likely to be considered junk.
Discussion ¶
When the value of this property is 1, the message is likely to be considered junk; when the value is 0, the message is not likely to be considered junk.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/likelyJunk
func (CSSearchableItemAttributeSet) Local ¶
func (c CSSearchableItemAttributeSet) Local() foundation.NSNumber
A value that indicates if the media is local.
Discussion ¶
When the value of this property is 1, the media is local; when the value is 0, the media is not local.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/local
func (CSSearchableItemAttributeSet) Longitude ¶
func (c CSSearchableItemAttributeSet) Longitude() foundation.NSNumber
The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum.
Discussion ¶
Negative values lie west of the prime meridian.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/longitude
func (CSSearchableItemAttributeSet) Lyricist ¶
func (c CSSearchableItemAttributeSet) Lyricist() string
The lyricist or text writer for the song or audio composition that the file contains.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/lyricist
func (CSSearchableItemAttributeSet) MailboxIdentifiers ¶
func (c CSSearchableItemAttributeSet) MailboxIdentifiers() []string
An array of mailbox identifiers associated with the message.
Discussion ¶
Can include CSMailboxInbox, CSMailboxDrafts, CSMailboxSent, or a custom identifier.
func (CSSearchableItemAttributeSet) MaxAperture ¶
func (c CSSearchableItemAttributeSet) MaxAperture() foundation.NSNumber
The smallest F number of the lens.
Discussion ¶
The unit of the F number is the APEX value, which is typically in the range of 00.00 to 99.99.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/maxAperture
func (CSSearchableItemAttributeSet) MediaTypes ¶
func (c CSSearchableItemAttributeSet) MediaTypes() []string
The media types present in the content.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/mediaTypes
func (CSSearchableItemAttributeSet) MetadataModificationDate ¶
func (c CSSearchableItemAttributeSet) MetadataModificationDate() foundation.NSDate
The date on which the last metadata attribute was changed.
func (CSSearchableItemAttributeSet) MeteringMode ¶
func (c CSSearchableItemAttributeSet) MeteringMode() string
The metering mode.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/meteringMode
func (CSSearchableItemAttributeSet) MoveFrom ¶
func (c CSSearchableItemAttributeSet) MoveFrom(sourceAttributeSet ICSSearchableItemAttributeSet)
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/move(from:)
func (CSSearchableItemAttributeSet) MusicalGenre ¶
func (c CSSearchableItemAttributeSet) MusicalGenre() string
The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/musicalGenre
func (CSSearchableItemAttributeSet) MusicalInstrumentCategory ¶
func (c CSSearchableItemAttributeSet) MusicalInstrumentCategory() string
The category of the instrument associated with the audio file.
Discussion ¶
A file should specify an associated instrument (note that you can use “Other Instrument” to specify an unknown instrument). In some categories, you can use instrument names to provide a more detailed instrument definition. For example, the Keyboards category lets you include instrument names such as Piano or Organ.
func (CSSearchableItemAttributeSet) MusicalInstrumentName ¶
func (c CSSearchableItemAttributeSet) MusicalInstrumentName() string
The name of an instrument within the context of an instrument category.
Discussion ¶
For some instrument categories, such as Percussion and Keyboards, you can specify an instrument name.
func (CSSearchableItemAttributeSet) NamedLocation ¶
func (c CSSearchableItemAttributeSet) NamedLocation() string
The name of the location or point of interest associated with the item.
Discussion ¶
The name may be user-provided.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/namedLocation
func (CSSearchableItemAttributeSet) Organizations ¶
func (c CSSearchableItemAttributeSet) Organizations() []string
A list of companies or organizations that created the content.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/organizations
func (CSSearchableItemAttributeSet) Orientation ¶
func (c CSSearchableItemAttributeSet) Orientation() foundation.NSNumber
The orientation of the data.
Discussion ¶
When the value of this property is 1, the orientation is portrait; when the value is 0, the orientation is landscape.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/orientation
func (CSSearchableItemAttributeSet) OriginalFormat ¶
func (c CSSearchableItemAttributeSet) OriginalFormat() string
The original format of the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/originalFormat
func (CSSearchableItemAttributeSet) OriginalSource ¶
func (c CSSearchableItemAttributeSet) OriginalSource() string
The original source of the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/originalSource
func (CSSearchableItemAttributeSet) PageCount ¶
func (c CSSearchableItemAttributeSet) PageCount() foundation.NSNumber
The number of pages in the document.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pageCount
func (CSSearchableItemAttributeSet) PageHeight ¶
func (c CSSearchableItemAttributeSet) PageHeight() foundation.NSNumber
The height of the document page, in points (72 points per inch).
Discussion ¶
For a PDF document, this property specifies the height of the first page only; other pages in a PDF document may have different heights.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pageHeight
func (CSSearchableItemAttributeSet) PageWidth ¶
func (c CSSearchableItemAttributeSet) PageWidth() foundation.NSNumber
The width of the document page, in points (72 points per inch).
Discussion ¶
For a PDF document, this property specifies the width of the first page only; other pages in a PDF document may have different widths.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pageWidth
func (CSSearchableItemAttributeSet) Participants ¶
func (c CSSearchableItemAttributeSet) Participants() []string
A list of people who are visible in an image or movie or written about in a document.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/participants
func (CSSearchableItemAttributeSet) Path ¶
func (c CSSearchableItemAttributeSet) Path() string
The complete path to the item.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/path
func (CSSearchableItemAttributeSet) Performers ¶
func (c CSSearchableItemAttributeSet) Performers() []string
A list of performers in the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/performers
func (CSSearchableItemAttributeSet) PhoneNumbers ¶
func (c CSSearchableItemAttributeSet) PhoneNumbers() []string
An array of phone numbers associated with the message.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/phoneNumbers
func (CSSearchableItemAttributeSet) PixelCount ¶
func (c CSSearchableItemAttributeSet) PixelCount() foundation.NSNumber
The total number of pixels in the image.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pixelCount
func (CSSearchableItemAttributeSet) PixelHeight ¶
func (c CSSearchableItemAttributeSet) PixelHeight() foundation.NSNumber
The height of the item, such as image or video frame height, in pixels.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pixelHeight
func (CSSearchableItemAttributeSet) PixelWidth ¶
func (c CSSearchableItemAttributeSet) PixelWidth() foundation.NSNumber
The width of the item, such as image or video frame width, in pixels.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/pixelWidth
func (CSSearchableItemAttributeSet) PlayCount ¶
func (c CSSearchableItemAttributeSet) PlayCount() foundation.NSNumber
A user-supplied play count for the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/playCount
func (CSSearchableItemAttributeSet) PostalCode ¶
func (c CSSearchableItemAttributeSet) PostalCode() string
The postal code for the item according to guidelines the provider establishes.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/postalCode
func (CSSearchableItemAttributeSet) PrimaryRecipients ¶
func (c CSSearchableItemAttributeSet) PrimaryRecipients() []CSPerson
An array of CSPerson objects representing the content of the To: field in an email message.
func (CSSearchableItemAttributeSet) Producer ¶
func (c CSSearchableItemAttributeSet) Producer() string
The producer of the content.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/producer
func (CSSearchableItemAttributeSet) ProfileName ¶
func (c CSSearchableItemAttributeSet) ProfileName() string
The name of the color profile the camera used for the image.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/profileName
func (CSSearchableItemAttributeSet) Projects ¶
func (c CSSearchableItemAttributeSet) Projects() []string
A list of projects of which this file is a part.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/projects
func (CSSearchableItemAttributeSet) ProviderDataTypeIdentifiers ¶
func (c CSSearchableItemAttributeSet) ProviderDataTypeIdentifiers() []string
An array of identifiers that corresponds to data representations the delegate provides.
func (CSSearchableItemAttributeSet) ProviderFileTypeIdentifiers ¶
func (c CSSearchableItemAttributeSet) ProviderFileTypeIdentifiers() []string
An array of identifiers that corresponds to file representations the delegate provides.
func (CSSearchableItemAttributeSet) ProviderInPlaceFileTypeIdentifiers ¶
func (c CSSearchableItemAttributeSet) ProviderInPlaceFileTypeIdentifiers() []string
An array of identifiers that corresponds to in-place file representations the delegate provides.
func (CSSearchableItemAttributeSet) Publishers ¶
func (c CSSearchableItemAttributeSet) Publishers() []string
A list of people, organizations, services, or other entities responsible for making the media available.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/publishers
func (CSSearchableItemAttributeSet) RankingHint ¶
func (c CSSearchableItemAttributeSet) RankingHint() foundation.NSNumber
A number that indicates the relative importance of the item among other items from the app.
Discussion ¶
Core Spotlight uses this value to distinguish between similar items from an app’s indexed content. Set this property to an integer value between zero and one hundred. Higher values indicate an item is more relevant, and Spotlight may display it more prominently.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/rankingHint
func (CSSearchableItemAttributeSet) Rating ¶
func (c CSSearchableItemAttributeSet) Rating() foundation.NSNumber
The user-supplied rating of the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/rating
func (CSSearchableItemAttributeSet) RatingDescription ¶
func (c CSSearchableItemAttributeSet) RatingDescription() string
A description of the rating.
Discussion ¶
For example, the description might include the number of reviewers who provided ratings.
func (CSSearchableItemAttributeSet) RecipientAddresses ¶
func (c CSSearchableItemAttributeSet) RecipientAddresses() []string
An array of addresses associated with the recipients of the message.
func (CSSearchableItemAttributeSet) RecipientEmailAddresses ¶
func (c CSSearchableItemAttributeSet) RecipientEmailAddresses() []string
An array of email addresses associated with the recipient.
Discussion ¶
The contents of this property is not human readable.
func (CSSearchableItemAttributeSet) RecipientNames ¶
func (c CSSearchableItemAttributeSet) RecipientNames() []string
An array of names representing the recipients of this message.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/recipientNames
func (CSSearchableItemAttributeSet) RecordingDate ¶
func (c CSSearchableItemAttributeSet) RecordingDate() foundation.NSDate
The recording date of the song or composition.
Discussion ¶
This property contains the original recording date of the song or composition and is supplementary to CSSearchableItemAttributeSet.ContentCreationDate, which indicates the date of an edited or optimized version.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/recordingDate
func (CSSearchableItemAttributeSet) RedEyeOn ¶
func (c CSSearchableItemAttributeSet) RedEyeOn() foundation.NSNumber
A value that indicates if the camera used red-eye reduction when capturing the image.
Discussion ¶
When the value of this property is 0, no red-eye reduction was used; when the value is 1, red-eye reduction was used.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/redEyeOn
func (CSSearchableItemAttributeSet) RelatedUniqueIdentifier ¶
func (c CSSearchableItemAttributeSet) RelatedUniqueIdentifier() string
The unique identifier for the item to which the activity is related.
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 CSSearchableItemAttributeSet.WeakRelatedUniqueIdentifier.
func (CSSearchableItemAttributeSet) ResolutionHeightDPI ¶
func (c CSSearchableItemAttributeSet) ResolutionHeightDPI() foundation.NSNumber
The resolution height of the image, in DPI.
func (CSSearchableItemAttributeSet) ResolutionWidthDPI ¶
func (c CSSearchableItemAttributeSet) ResolutionWidthDPI() foundation.NSNumber
The resolution width of the image, in DPI.
func (CSSearchableItemAttributeSet) Rights ¶
func (c CSSearchableItemAttributeSet) Rights() string
A link to information about the rights held in and over the media.
Discussion ¶
Typically, this property contains a rights management statement for the media, or references a service that provides such information. Rights information often encompasses Intellectual Property Rights (IPR), copyright, and various property rights. If the `rights` property is absent, no assumptions can be made about the status of these and other rights with respect to the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/rights
func (CSSearchableItemAttributeSet) Role ¶
func (c CSSearchableItemAttributeSet) Role() string
Indicates the role of the content creator.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/role
func (CSSearchableItemAttributeSet) SecurityMethod ¶
func (c CSSearchableItemAttributeSet) SecurityMethod() string
The security method (a type of encryption) that protects the document file.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/securityMethod
func (CSSearchableItemAttributeSet) SetAccountHandles ¶
func (c CSSearchableItemAttributeSet) SetAccountHandles(value []string)
func (CSSearchableItemAttributeSet) SetAccountIdentifier ¶
func (c CSSearchableItemAttributeSet) SetAccountIdentifier(value string)
func (CSSearchableItemAttributeSet) SetAcquisitionMake ¶
func (c CSSearchableItemAttributeSet) SetAcquisitionMake(value string)
func (CSSearchableItemAttributeSet) SetAcquisitionModel ¶
func (c CSSearchableItemAttributeSet) SetAcquisitionModel(value string)
func (CSSearchableItemAttributeSet) SetAddedDate ¶
func (c CSSearchableItemAttributeSet) SetAddedDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetAdditionalRecipients ¶
func (c CSSearchableItemAttributeSet) SetAdditionalRecipients(value []CSPerson)
func (CSSearchableItemAttributeSet) SetAlbum ¶
func (c CSSearchableItemAttributeSet) SetAlbum(value string)
func (CSSearchableItemAttributeSet) SetAllDay ¶
func (c CSSearchableItemAttributeSet) SetAllDay(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetAlternateNames ¶
func (c CSSearchableItemAttributeSet) SetAlternateNames(value []string)
func (CSSearchableItemAttributeSet) SetAltitude ¶
func (c CSSearchableItemAttributeSet) SetAltitude(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetAperture ¶
func (c CSSearchableItemAttributeSet) SetAperture(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetArtist ¶
func (c CSSearchableItemAttributeSet) SetArtist(value string)
func (CSSearchableItemAttributeSet) SetAudiences ¶
func (c CSSearchableItemAttributeSet) SetAudiences(value []string)
func (CSSearchableItemAttributeSet) SetAudioBitRate ¶
func (c CSSearchableItemAttributeSet) SetAudioBitRate(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetAudioChannelCount ¶
func (c CSSearchableItemAttributeSet) SetAudioChannelCount(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetAudioEncodingApplication ¶
func (c CSSearchableItemAttributeSet) SetAudioEncodingApplication(value string)
func (CSSearchableItemAttributeSet) SetAudioSampleRate ¶
func (c CSSearchableItemAttributeSet) SetAudioSampleRate(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetAudioTrackNumber ¶
func (c CSSearchableItemAttributeSet) SetAudioTrackNumber(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetAuthorAddresses ¶
func (c CSSearchableItemAttributeSet) SetAuthorAddresses(value []string)
func (CSSearchableItemAttributeSet) SetAuthorEmailAddresses ¶
func (c CSSearchableItemAttributeSet) SetAuthorEmailAddresses(value []string)
func (CSSearchableItemAttributeSet) SetAuthorNames ¶
func (c CSSearchableItemAttributeSet) SetAuthorNames(value []string)
func (CSSearchableItemAttributeSet) SetAuthors ¶
func (c CSSearchableItemAttributeSet) SetAuthors(value []CSPerson)
func (CSSearchableItemAttributeSet) SetBitsPerSample ¶
func (c CSSearchableItemAttributeSet) SetBitsPerSample(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetCameraOwner ¶
func (c CSSearchableItemAttributeSet) SetCameraOwner(value string)
func (CSSearchableItemAttributeSet) SetCity ¶
func (c CSSearchableItemAttributeSet) SetCity(value string)
func (CSSearchableItemAttributeSet) SetCodecs ¶
func (c CSSearchableItemAttributeSet) SetCodecs(value []string)
func (CSSearchableItemAttributeSet) SetColorSpace ¶
func (c CSSearchableItemAttributeSet) SetColorSpace(value string)
func (CSSearchableItemAttributeSet) SetComment ¶
func (c CSSearchableItemAttributeSet) SetComment(value string)
func (CSSearchableItemAttributeSet) SetCompletionDate ¶
func (c CSSearchableItemAttributeSet) SetCompletionDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetComposer ¶
func (c CSSearchableItemAttributeSet) SetComposer(value string)
func (CSSearchableItemAttributeSet) SetContactKeywords ¶
func (c CSSearchableItemAttributeSet) SetContactKeywords(value []string)
func (CSSearchableItemAttributeSet) SetContainerDisplayName ¶
func (c CSSearchableItemAttributeSet) SetContainerDisplayName(value string)
func (CSSearchableItemAttributeSet) SetContainerIdentifier ¶
func (c CSSearchableItemAttributeSet) SetContainerIdentifier(value string)
func (CSSearchableItemAttributeSet) SetContainerOrder ¶
func (c CSSearchableItemAttributeSet) SetContainerOrder(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetContainerTitle ¶
func (c CSSearchableItemAttributeSet) SetContainerTitle(value string)
func (CSSearchableItemAttributeSet) SetContentCreationDate ¶
func (c CSSearchableItemAttributeSet) SetContentCreationDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetContentDescription ¶
func (c CSSearchableItemAttributeSet) SetContentDescription(value string)
func (CSSearchableItemAttributeSet) SetContentModificationDate ¶
func (c CSSearchableItemAttributeSet) SetContentModificationDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetContentRating ¶
func (c CSSearchableItemAttributeSet) SetContentRating(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetContentSources ¶
func (c CSSearchableItemAttributeSet) SetContentSources(value []string)
func (CSSearchableItemAttributeSet) SetContentType ¶
func (c CSSearchableItemAttributeSet) SetContentType(value string)
func (CSSearchableItemAttributeSet) SetContentTypeTree ¶
func (c CSSearchableItemAttributeSet) SetContentTypeTree(value []string)
func (CSSearchableItemAttributeSet) SetContentURL ¶
func (c CSSearchableItemAttributeSet) SetContentURL(value foundation.NSURL)
func (CSSearchableItemAttributeSet) SetContributors ¶
func (c CSSearchableItemAttributeSet) SetContributors(value []string)
func (CSSearchableItemAttributeSet) SetCopyright ¶
func (c CSSearchableItemAttributeSet) SetCopyright(value string)
func (CSSearchableItemAttributeSet) SetCountry ¶
func (c CSSearchableItemAttributeSet) SetCountry(value string)
func (CSSearchableItemAttributeSet) SetCoverage ¶
func (c CSSearchableItemAttributeSet) SetCoverage(value []string)
func (CSSearchableItemAttributeSet) SetCreator ¶
func (c CSSearchableItemAttributeSet) SetCreator(value string)
func (CSSearchableItemAttributeSet) SetDarkThumbnailURL ¶
func (c CSSearchableItemAttributeSet) SetDarkThumbnailURL(value foundation.NSURL)
func (CSSearchableItemAttributeSet) SetDeliveryType ¶
func (c CSSearchableItemAttributeSet) SetDeliveryType(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetDirector ¶
func (c CSSearchableItemAttributeSet) SetDirector(value string)
func (CSSearchableItemAttributeSet) SetDisplayName ¶
func (c CSSearchableItemAttributeSet) SetDisplayName(value string)
func (CSSearchableItemAttributeSet) SetDomainIdentifier ¶
func (c CSSearchableItemAttributeSet) SetDomainIdentifier(value string)
func (CSSearchableItemAttributeSet) SetDownloadedDate ¶
func (c CSSearchableItemAttributeSet) SetDownloadedDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetDueDate ¶
func (c CSSearchableItemAttributeSet) SetDueDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetDuration ¶
func (c CSSearchableItemAttributeSet) SetDuration(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetEXIFGPSVersion ¶
func (c CSSearchableItemAttributeSet) SetEXIFGPSVersion(value string)
func (CSSearchableItemAttributeSet) SetEXIFVersion ¶
func (c CSSearchableItemAttributeSet) SetEXIFVersion(value string)
func (CSSearchableItemAttributeSet) SetEditors ¶
func (c CSSearchableItemAttributeSet) SetEditors(value []string)
func (CSSearchableItemAttributeSet) SetEmailAddresses ¶
func (c CSSearchableItemAttributeSet) SetEmailAddresses(value []string)
func (CSSearchableItemAttributeSet) SetEmailHeaders ¶
func (c CSSearchableItemAttributeSet) SetEmailHeaders(value foundation.INSDictionary)
func (CSSearchableItemAttributeSet) SetEncodingApplications ¶
func (c CSSearchableItemAttributeSet) SetEncodingApplications(value []string)
func (CSSearchableItemAttributeSet) SetEndDate ¶
func (c CSSearchableItemAttributeSet) SetEndDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetExposureMode ¶
func (c CSSearchableItemAttributeSet) SetExposureMode(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetExposureProgram ¶
func (c CSSearchableItemAttributeSet) SetExposureProgram(value string)
func (CSSearchableItemAttributeSet) SetExposureTime ¶
func (c CSSearchableItemAttributeSet) SetExposureTime(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetExposureTimeString ¶
func (c CSSearchableItemAttributeSet) SetExposureTimeString(value string)
func (CSSearchableItemAttributeSet) SetFNumber ¶
func (c CSSearchableItemAttributeSet) SetFNumber(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetFileSize ¶
func (c CSSearchableItemAttributeSet) SetFileSize(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetFlashOn ¶
func (c CSSearchableItemAttributeSet) SetFlashOn(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetFocalLength ¶
func (c CSSearchableItemAttributeSet) SetFocalLength(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetFocalLength35mm ¶
func (c CSSearchableItemAttributeSet) SetFocalLength35mm(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetFontNames ¶
func (c CSSearchableItemAttributeSet) SetFontNames(value []string)
func (CSSearchableItemAttributeSet) SetFullyFormattedAddress ¶
func (c CSSearchableItemAttributeSet) SetFullyFormattedAddress(value string)
func (CSSearchableItemAttributeSet) SetGPSAreaInformation ¶
func (c CSSearchableItemAttributeSet) SetGPSAreaInformation(value string)
func (CSSearchableItemAttributeSet) SetGPSDOP ¶
func (c CSSearchableItemAttributeSet) SetGPSDOP(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetGPSDateStamp ¶
func (c CSSearchableItemAttributeSet) SetGPSDateStamp(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetGPSDestBearing ¶
func (c CSSearchableItemAttributeSet) SetGPSDestBearing(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetGPSDestDistance ¶
func (c CSSearchableItemAttributeSet) SetGPSDestDistance(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetGPSDestLatitude ¶
func (c CSSearchableItemAttributeSet) SetGPSDestLatitude(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetGPSDestLongitude ¶
func (c CSSearchableItemAttributeSet) SetGPSDestLongitude(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetGPSDifferental ¶
func (c CSSearchableItemAttributeSet) SetGPSDifferental(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetGPSMapDatum ¶
func (c CSSearchableItemAttributeSet) SetGPSMapDatum(value string)
func (CSSearchableItemAttributeSet) SetGPSMeasureMode ¶
func (c CSSearchableItemAttributeSet) SetGPSMeasureMode(value string)
func (CSSearchableItemAttributeSet) SetGPSProcessingMethod ¶
func (c CSSearchableItemAttributeSet) SetGPSProcessingMethod(value string)
func (CSSearchableItemAttributeSet) SetGPSStatus ¶
func (c CSSearchableItemAttributeSet) SetGPSStatus(value string)
func (CSSearchableItemAttributeSet) SetGPSTrack ¶
func (c CSSearchableItemAttributeSet) SetGPSTrack(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetGeneralMIDISequence ¶
func (c CSSearchableItemAttributeSet) SetGeneralMIDISequence(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetGenre ¶
func (c CSSearchableItemAttributeSet) SetGenre(value string)
func (CSSearchableItemAttributeSet) SetHTMLContentData ¶
func (c CSSearchableItemAttributeSet) SetHTMLContentData(value foundation.NSData)
func (CSSearchableItemAttributeSet) SetHasAlphaChannel ¶
func (c CSSearchableItemAttributeSet) SetHasAlphaChannel(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetHeadline ¶
func (c CSSearchableItemAttributeSet) SetHeadline(value string)
func (CSSearchableItemAttributeSet) SetHiddenAdditionalRecipients ¶
func (c CSSearchableItemAttributeSet) SetHiddenAdditionalRecipients(value []CSPerson)
func (CSSearchableItemAttributeSet) SetISOSpeed ¶
func (c CSSearchableItemAttributeSet) SetISOSpeed(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetIdentifier ¶
func (c CSSearchableItemAttributeSet) SetIdentifier(value string)
func (CSSearchableItemAttributeSet) SetImageDirection ¶
func (c CSSearchableItemAttributeSet) SetImageDirection(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetImportantDates ¶
func (c CSSearchableItemAttributeSet) SetImportantDates(value []foundation.NSDate)
func (CSSearchableItemAttributeSet) SetInformation ¶
func (c CSSearchableItemAttributeSet) SetInformation(value string)
func (CSSearchableItemAttributeSet) SetInstantMessageAddresses ¶
func (c CSSearchableItemAttributeSet) SetInstantMessageAddresses(value []string)
func (CSSearchableItemAttributeSet) SetInstructions ¶
func (c CSSearchableItemAttributeSet) SetInstructions(value string)
func (CSSearchableItemAttributeSet) SetKeySignature ¶
func (c CSSearchableItemAttributeSet) SetKeySignature(value string)
func (CSSearchableItemAttributeSet) SetKeywords ¶
func (c CSSearchableItemAttributeSet) SetKeywords(value []string)
func (CSSearchableItemAttributeSet) SetKind ¶
func (c CSSearchableItemAttributeSet) SetKind(value string)
func (CSSearchableItemAttributeSet) SetLanguages ¶
func (c CSSearchableItemAttributeSet) SetLanguages(value []string)
func (CSSearchableItemAttributeSet) SetLastUsedDate ¶
func (c CSSearchableItemAttributeSet) SetLastUsedDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetLatitude ¶
func (c CSSearchableItemAttributeSet) SetLatitude(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetLayerNames ¶
func (c CSSearchableItemAttributeSet) SetLayerNames(value []string)
func (CSSearchableItemAttributeSet) SetLensModel ¶
func (c CSSearchableItemAttributeSet) SetLensModel(value string)
func (CSSearchableItemAttributeSet) SetLikelyJunk ¶
func (c CSSearchableItemAttributeSet) SetLikelyJunk(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetLocal ¶
func (c CSSearchableItemAttributeSet) SetLocal(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetLongitude ¶
func (c CSSearchableItemAttributeSet) SetLongitude(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetLyricist ¶
func (c CSSearchableItemAttributeSet) SetLyricist(value string)
func (CSSearchableItemAttributeSet) SetMailboxIdentifiers ¶
func (c CSSearchableItemAttributeSet) SetMailboxIdentifiers(value []string)
func (CSSearchableItemAttributeSet) SetMaxAperture ¶
func (c CSSearchableItemAttributeSet) SetMaxAperture(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetMediaTypes ¶
func (c CSSearchableItemAttributeSet) SetMediaTypes(value []string)
func (CSSearchableItemAttributeSet) SetMetadataModificationDate ¶
func (c CSSearchableItemAttributeSet) SetMetadataModificationDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetMeteringMode ¶
func (c CSSearchableItemAttributeSet) SetMeteringMode(value string)
func (CSSearchableItemAttributeSet) SetMusicalGenre ¶
func (c CSSearchableItemAttributeSet) SetMusicalGenre(value string)
func (CSSearchableItemAttributeSet) SetMusicalInstrumentCategory ¶
func (c CSSearchableItemAttributeSet) SetMusicalInstrumentCategory(value string)
func (CSSearchableItemAttributeSet) SetMusicalInstrumentName ¶
func (c CSSearchableItemAttributeSet) SetMusicalInstrumentName(value string)
func (CSSearchableItemAttributeSet) SetNamedLocation ¶
func (c CSSearchableItemAttributeSet) SetNamedLocation(value string)
func (CSSearchableItemAttributeSet) SetOrganizations ¶
func (c CSSearchableItemAttributeSet) SetOrganizations(value []string)
func (CSSearchableItemAttributeSet) SetOrientation ¶
func (c CSSearchableItemAttributeSet) SetOrientation(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetOriginalFormat ¶
func (c CSSearchableItemAttributeSet) SetOriginalFormat(value string)
func (CSSearchableItemAttributeSet) SetOriginalSource ¶
func (c CSSearchableItemAttributeSet) SetOriginalSource(value string)
func (CSSearchableItemAttributeSet) SetPageCount ¶
func (c CSSearchableItemAttributeSet) SetPageCount(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetPageHeight ¶
func (c CSSearchableItemAttributeSet) SetPageHeight(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetPageWidth ¶
func (c CSSearchableItemAttributeSet) SetPageWidth(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetParticipants ¶
func (c CSSearchableItemAttributeSet) SetParticipants(value []string)
func (CSSearchableItemAttributeSet) SetPath ¶
func (c CSSearchableItemAttributeSet) SetPath(value string)
func (CSSearchableItemAttributeSet) SetPerformers ¶
func (c CSSearchableItemAttributeSet) SetPerformers(value []string)
func (CSSearchableItemAttributeSet) SetPhoneNumbers ¶
func (c CSSearchableItemAttributeSet) SetPhoneNumbers(value []string)
func (CSSearchableItemAttributeSet) SetPixelCount ¶
func (c CSSearchableItemAttributeSet) SetPixelCount(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetPixelHeight ¶
func (c CSSearchableItemAttributeSet) SetPixelHeight(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetPixelWidth ¶
func (c CSSearchableItemAttributeSet) SetPixelWidth(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetPlayCount ¶
func (c CSSearchableItemAttributeSet) SetPlayCount(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetPostalCode ¶
func (c CSSearchableItemAttributeSet) SetPostalCode(value string)
func (CSSearchableItemAttributeSet) SetPrimaryRecipients ¶
func (c CSSearchableItemAttributeSet) SetPrimaryRecipients(value []CSPerson)
func (CSSearchableItemAttributeSet) SetProducer ¶
func (c CSSearchableItemAttributeSet) SetProducer(value string)
func (CSSearchableItemAttributeSet) SetProfileName ¶
func (c CSSearchableItemAttributeSet) SetProfileName(value string)
func (CSSearchableItemAttributeSet) SetProjects ¶
func (c CSSearchableItemAttributeSet) SetProjects(value []string)
func (CSSearchableItemAttributeSet) SetProviderDataTypeIdentifiers ¶
func (c CSSearchableItemAttributeSet) SetProviderDataTypeIdentifiers(value []string)
func (CSSearchableItemAttributeSet) SetProviderFileTypeIdentifiers ¶
func (c CSSearchableItemAttributeSet) SetProviderFileTypeIdentifiers(value []string)
func (CSSearchableItemAttributeSet) SetProviderInPlaceFileTypeIdentifiers ¶
func (c CSSearchableItemAttributeSet) SetProviderInPlaceFileTypeIdentifiers(value []string)
func (CSSearchableItemAttributeSet) SetPublishers ¶
func (c CSSearchableItemAttributeSet) SetPublishers(value []string)
func (CSSearchableItemAttributeSet) SetRankingHint ¶
func (c CSSearchableItemAttributeSet) SetRankingHint(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetRating ¶
func (c CSSearchableItemAttributeSet) SetRating(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetRatingDescription ¶
func (c CSSearchableItemAttributeSet) SetRatingDescription(value string)
func (CSSearchableItemAttributeSet) SetRecipientAddresses ¶
func (c CSSearchableItemAttributeSet) SetRecipientAddresses(value []string)
func (CSSearchableItemAttributeSet) SetRecipientEmailAddresses ¶
func (c CSSearchableItemAttributeSet) SetRecipientEmailAddresses(value []string)
func (CSSearchableItemAttributeSet) SetRecipientNames ¶
func (c CSSearchableItemAttributeSet) SetRecipientNames(value []string)
func (CSSearchableItemAttributeSet) SetRecordingDate ¶
func (c CSSearchableItemAttributeSet) SetRecordingDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetRedEyeOn ¶
func (c CSSearchableItemAttributeSet) SetRedEyeOn(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetRelatedUniqueIdentifier ¶
func (c CSSearchableItemAttributeSet) SetRelatedUniqueIdentifier(value string)
func (CSSearchableItemAttributeSet) SetResolutionHeightDPI ¶
func (c CSSearchableItemAttributeSet) SetResolutionHeightDPI(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetResolutionWidthDPI ¶
func (c CSSearchableItemAttributeSet) SetResolutionWidthDPI(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetRights ¶
func (c CSSearchableItemAttributeSet) SetRights(value string)
func (CSSearchableItemAttributeSet) SetRole ¶
func (c CSSearchableItemAttributeSet) SetRole(value string)
func (CSSearchableItemAttributeSet) SetSecurityMethod ¶
func (c CSSearchableItemAttributeSet) SetSecurityMethod(value string)
func (CSSearchableItemAttributeSet) SetSpeed ¶
func (c CSSearchableItemAttributeSet) SetSpeed(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetStartDate ¶
func (c CSSearchableItemAttributeSet) SetStartDate(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetStateOrProvince ¶
func (c CSSearchableItemAttributeSet) SetStateOrProvince(value string)
func (CSSearchableItemAttributeSet) SetStreamable ¶
func (c CSSearchableItemAttributeSet) SetStreamable(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetSubThoroughfare ¶
func (c CSSearchableItemAttributeSet) SetSubThoroughfare(value string)
func (CSSearchableItemAttributeSet) SetSubject ¶
func (c CSSearchableItemAttributeSet) SetSubject(value string)
func (CSSearchableItemAttributeSet) SetSupportsNavigation ¶
func (c CSSearchableItemAttributeSet) SetSupportsNavigation(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetSupportsPhoneCall ¶
func (c CSSearchableItemAttributeSet) SetSupportsPhoneCall(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetTempo ¶
func (c CSSearchableItemAttributeSet) SetTempo(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetTextContent ¶
func (c CSSearchableItemAttributeSet) SetTextContent(value string)
func (CSSearchableItemAttributeSet) SetTheme ¶
func (c CSSearchableItemAttributeSet) SetTheme(value string)
func (CSSearchableItemAttributeSet) SetThoroughfare ¶
func (c CSSearchableItemAttributeSet) SetThoroughfare(value string)
func (CSSearchableItemAttributeSet) SetThumbnailData ¶
func (c CSSearchableItemAttributeSet) SetThumbnailData(value foundation.NSData)
func (CSSearchableItemAttributeSet) SetThumbnailURL ¶
func (c CSSearchableItemAttributeSet) SetThumbnailURL(value foundation.NSURL)
func (CSSearchableItemAttributeSet) SetTimeSignature ¶
func (c CSSearchableItemAttributeSet) SetTimeSignature(value string)
func (CSSearchableItemAttributeSet) SetTimestamp ¶
func (c CSSearchableItemAttributeSet) SetTimestamp(value foundation.NSDate)
func (CSSearchableItemAttributeSet) SetTitle ¶
func (c CSSearchableItemAttributeSet) SetTitle(value string)
func (CSSearchableItemAttributeSet) SetTotalBitRate ¶
func (c CSSearchableItemAttributeSet) SetTotalBitRate(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetTranscribedTextContent ¶
func (c CSSearchableItemAttributeSet) SetTranscribedTextContent(value string)
func (CSSearchableItemAttributeSet) SetURL ¶
func (c CSSearchableItemAttributeSet) SetURL(value foundation.NSURL)
func (CSSearchableItemAttributeSet) SetUserCreated ¶
func (c CSSearchableItemAttributeSet) SetUserCreated(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetUserCurated ¶
func (c CSSearchableItemAttributeSet) SetUserCurated(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetUserOwned ¶
func (c CSSearchableItemAttributeSet) SetUserOwned(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetValueForCustomKey ¶
func (c CSSearchableItemAttributeSet) SetValueForCustomKey(value foundation.NSSecureCoding, key ICSCustomAttributeKey)
Sets the value for a custom attribute key.
value: The value of the custom attribute. Values must be common property list types, such as NSString, NSNumber, NSNull, NSData, or NSDate, or an array of property list types.
key: The custom attribute key.
func (CSSearchableItemAttributeSet) SetVersion ¶
func (c CSSearchableItemAttributeSet) SetVersion(value string)
func (CSSearchableItemAttributeSet) SetVideoBitRate ¶
func (c CSSearchableItemAttributeSet) SetVideoBitRate(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) SetWeakRelatedUniqueIdentifier ¶
func (c CSSearchableItemAttributeSet) SetWeakRelatedUniqueIdentifier(value string)
func (CSSearchableItemAttributeSet) SetWhiteBalance ¶
func (c CSSearchableItemAttributeSet) SetWhiteBalance(value foundation.NSNumber)
func (CSSearchableItemAttributeSet) Speed ¶
func (c CSSearchableItemAttributeSet) Speed() foundation.NSNumber
The speed of the item, in kilometers per hour.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/speed
func (CSSearchableItemAttributeSet) StartDate ¶
func (c CSSearchableItemAttributeSet) StartDate() foundation.NSDate
The start date for the item.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/startDate
func (CSSearchableItemAttributeSet) StateOrProvince ¶
func (c CSSearchableItemAttributeSet) StateOrProvince() string
The province or state of origin according to guidelines the provider establishes.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/stateOrProvince
func (CSSearchableItemAttributeSet) Streamable ¶
func (c CSSearchableItemAttributeSet) Streamable() foundation.NSNumber
A value that indicates if the content is prepared for streaming.
Discussion ¶
When the value of this property is 0, the content is not prepared for streaming; when the value is 1, it is prepared for streaming.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/streamable
func (CSSearchableItemAttributeSet) SubThoroughfare ¶
func (c CSSearchableItemAttributeSet) SubThoroughfare() string
The sublocation, such as a street number, for the item according to guidelines the provider establishes.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/subThoroughfare
func (CSSearchableItemAttributeSet) Subject ¶
func (c CSSearchableItemAttributeSet) Subject() string
The subject of the document.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/subject
func (CSSearchableItemAttributeSet) SupportsNavigation ¶
func (c CSSearchableItemAttributeSet) SupportsNavigation() foundation.NSNumber
A value that indicates whether the item contains information sufficient to provide navigation to the location it represents.
Discussion ¶
When an item includes CSSearchableItemAttributeSet.Latitude and CSSearchableItemAttributeSet.Longitude properties, these properties can be used for navigation to the location represented by the item. For example, it makes sense to set CSSearchableItemAttributeSet.SupportsNavigation to `1` for an item that represents review for a specific restaurant, but not for an item that represents a photo of a person.
func (CSSearchableItemAttributeSet) SupportsPhoneCall ¶
func (c CSSearchableItemAttributeSet) SupportsPhoneCall() foundation.NSNumber
A value that indicates whether the item contains information sufficient to allow a phone call to a number associated with the item.
Discussion ¶
When an item includes the CSSearchableItemAttributeSet.PhoneNumbers property, the phone number can be used to initiate phone calls. You can use the CSSearchableItemAttributeSet.SupportsPhoneCall property to indicate when making a phone call is appropriate and likely to be a primary action for the user. For example, you might set CSSearchableItemAttributeSet.SupportsPhoneCall to `1` for an item that represents a business, but not for an item that represents an academic paper that lists the phone numbers of the authors or the institution.
func (CSSearchableItemAttributeSet) Tempo ¶
func (c CSSearchableItemAttributeSet) Tempo() foundation.NSNumber
The tempo of the music that the audio file contains, in beats per minute.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/tempo
func (CSSearchableItemAttributeSet) TextContent ¶
func (c CSSearchableItemAttributeSet) TextContent() string
The textual content of the message.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/textContent
func (CSSearchableItemAttributeSet) TextContentSummary ¶
func (c CSSearchableItemAttributeSet) TextContentSummary() string
A string that presents the Apple Intelligence summarization of the item.
Discussion ¶
This property represents the summary of the text that Apple Intelligence generated.
func (CSSearchableItemAttributeSet) Theme ¶
func (c CSSearchableItemAttributeSet) Theme() string
The theme of the document.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/theme
func (CSSearchableItemAttributeSet) Thoroughfare ¶
func (c CSSearchableItemAttributeSet) Thoroughfare() string
The thoroughfare, such as a street name, associated with the location for the item according to guidelines the provider establishes.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/thoroughfare
func (CSSearchableItemAttributeSet) ThumbnailData ¶
func (c CSSearchableItemAttributeSet) ThumbnailData() foundation.NSData
Image data that represents the thumbnail of the item.
Discussion ¶
This property is optional. For some guidance on creating a thumbnail image, see Enhance Your Search Results.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/thumbnailData
func (CSSearchableItemAttributeSet) ThumbnailURL ¶
func (c CSSearchableItemAttributeSet) ThumbnailURL() foundation.NSURL
The local file URL of the thumbnail image for the item.
Discussion ¶
This property is optional. Note that the URL needs to point to a local file; it is not a web URL.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/thumbnailURL
func (CSSearchableItemAttributeSet) TimeSignature ¶
func (c CSSearchableItemAttributeSet) TimeSignature() string
The time signature of the musical composition that the audio or MIDI file contains, in a string, such as “4/4” or “7/8”.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/timeSignature
func (CSSearchableItemAttributeSet) Timestamp ¶
func (c CSSearchableItemAttributeSet) Timestamp() foundation.NSDate
The timestamp on the item.
Discussion ¶
The value of this property is generally used to specify the time at which the event captured by the item took place.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/timestamp
func (CSSearchableItemAttributeSet) Title ¶
func (c CSSearchableItemAttributeSet) Title() string
The title of the item.
Discussion ¶
An item title might be the title of a document or MP3 file or the subject of an email message.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/title
func (CSSearchableItemAttributeSet) TotalBitRate ¶
func (c CSSearchableItemAttributeSet) TotalBitRate() foundation.NSNumber
The total bit rate of the media, combining audio and video.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/totalBitRate
func (CSSearchableItemAttributeSet) TranscribedTextContent ¶
func (c CSSearchableItemAttributeSet) TranscribedTextContent() string
A string that represents the text the system transcribed.
func (CSSearchableItemAttributeSet) URL ¶
func (c CSSearchableItemAttributeSet) URL() foundation.NSURL
The URL associated with the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/url
func (CSSearchableItemAttributeSet) UserCreated ¶
func (c CSSearchableItemAttributeSet) UserCreated() foundation.NSNumber
A value that indicates the user created the item.
Discussion ¶
Examples of items to set this property on include notes and documents that the user creates or modifies.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/userCreated
func (CSSearchableItemAttributeSet) UserCurated ¶
func (c CSSearchableItemAttributeSet) UserCurated() foundation.NSNumber
A value that indicates the user selected the item.
Discussion ¶
Examples of items to set this property on include media content the user downloads and websites or news articles the user bookmarks.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/userCurated
func (CSSearchableItemAttributeSet) UserOwned ¶
func (c CSSearchableItemAttributeSet) UserOwned() foundation.NSNumber
A value that indicates the user purchased or owns the item.
Discussion ¶
Examples of items to set this property on include songs and movies the user purchases.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/userOwned
func (CSSearchableItemAttributeSet) ValueForCustomKey ¶
func (c CSSearchableItemAttributeSet) ValueForCustomKey(key ICSCustomAttributeKey) foundation.NSSecureCoding
Returns the value associated with the specified custom attribute key.
key: The custom attribute key.
Return Value ¶
The value associated with the custom attribute key.
func (CSSearchableItemAttributeSet) Version ¶
func (c CSSearchableItemAttributeSet) Version() string
A version string associated with the file.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/version
func (CSSearchableItemAttributeSet) VideoBitRate ¶
func (c CSSearchableItemAttributeSet) VideoBitRate() foundation.NSNumber
The video bit rate of the media.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/videoBitRate
func (CSSearchableItemAttributeSet) WeakRelatedUniqueIdentifier ¶
func (c CSSearchableItemAttributeSet) WeakRelatedUniqueIdentifier() string
The unique identifier for the item to which the activity is related, but not linked.
Discussion ¶
Unlike the similar CSSearchableItemAttributeSet.RelatedUniqueIdentifier property, this property does not link the lifetime of the item to the lifetime of the activity. In particular, deleting the item does not delete the activity.
func (CSSearchableItemAttributeSet) WhiteBalance ¶
func (c CSSearchableItemAttributeSet) WhiteBalance() foundation.NSNumber
The white balance setting when the camera captured the image.
Discussion ¶
The value of this property is 0 for auto and 1 for manual.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet/whiteBalance
type CSSearchableItemAttributeSetClass ¶
type CSSearchableItemAttributeSetClass struct {
// contains filtered or unexported fields
}
func GetCSSearchableItemAttributeSetClass ¶
func GetCSSearchableItemAttributeSetClass() CSSearchableItemAttributeSetClass
GetCSSearchableItemAttributeSetClass returns the class object for CSSearchableItemAttributeSet.
func (CSSearchableItemAttributeSetClass) Alloc ¶
func (cc CSSearchableItemAttributeSetClass) Alloc() CSSearchableItemAttributeSet
Alloc allocates memory for a new instance of the class.
func (CSSearchableItemAttributeSetClass) Class ¶
func (cc CSSearchableItemAttributeSetClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type CSSearchableItemClass ¶
type CSSearchableItemClass struct {
// contains filtered or unexported fields
}
func GetCSSearchableItemClass ¶
func GetCSSearchableItemClass() CSSearchableItemClass
GetCSSearchableItemClass returns the class object for CSSearchableItem.
func (CSSearchableItemClass) Alloc ¶
func (cc CSSearchableItemClass) Alloc() CSSearchableItem
Alloc allocates memory for a new instance of the class.
func (CSSearchableItemClass) Class ¶
func (cc CSSearchableItemClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type CSSearchableItemUpdateListenerOptions ¶
type CSSearchableItemUpdateListenerOptions uint
const ( CSSearchableItemUpdateListenerOptionDefault CSSearchableItemUpdateListenerOptions = 0 // CSSearchableItemUpdateListenerOptionPriority: A value that describes the listener priority options. CSSearchableItemUpdateListenerOptionPriority CSSearchableItemUpdateListenerOptions = 4 // CSSearchableItemUpdateListenerOptionSummarization: A value that describes the listener summarization options. CSSearchableItemUpdateListenerOptionSummarization CSSearchableItemUpdateListenerOptions = 2 )
func (CSSearchableItemUpdateListenerOptions) String ¶
func (e CSSearchableItemUpdateListenerOptions) String() string
type CSSuggestion ¶
type CSSuggestion struct {
objectivec.Object
}
The kind of suggestion to use in a query.
Overview ¶
Your app uses CSSuggestion objects to populate a contextual menu of suggestions.
Setting suggestion attributes ¶
- CSSuggestion.LocalizedAttributedSuggestion: An attributed string for the localized suggestion.
- CSSuggestion.SetLocalizedAttributedSuggestion
- CSSuggestion.SuggestionKind: The type of suggestion.
Comparing suggestions ¶
- CSSuggestion.Compare: Compares the suggestion with a second specified suggestion.
- CSSuggestion.CompareByRank
Initializers ¶
See: https://developer.apple.com/documentation/CoreSpotlight/CSSuggestion
func CSSuggestionFromID ¶
func CSSuggestionFromID(id objc.ID) CSSuggestion
CSSuggestionFromID constructs a CSSuggestion from an objc.ID.
The kind of suggestion to use in a query.
func NewCSSuggestion ¶
func NewCSSuggestion() CSSuggestion
NewCSSuggestion creates a new CSSuggestion instance.
func NewCSSuggestionWithCoder ¶
func NewCSSuggestionWithCoder(coder foundation.INSCoder) CSSuggestion
See: https://developer.apple.com/documentation/CoreSpotlight/CSSuggestion/init(coder:)
func (CSSuggestion) Autorelease ¶
func (c CSSuggestion) Autorelease() CSSuggestion
Autorelease adds the receiver to the current autorelease pool.
func (CSSuggestion) Compare ¶
func (c CSSuggestion) Compare(other ICSSuggestion) foundation.ComparisonResult
Compares the suggestion with a second specified suggestion.
other: The suggestion to compare to this suggestion.
Return Value ¶
Returns an [NSComparisonResult].
See: https://developer.apple.com/documentation/CoreSpotlight/CSSuggestion/compare(_:)
func (CSSuggestion) CompareByRank ¶
func (c CSSuggestion) CompareByRank(other ICSSuggestion) foundation.ComparisonResult
See: https://developer.apple.com/documentation/CoreSpotlight/CSSuggestion/compare(byRank:)
func (CSSuggestion) EncodeWithCoder ¶
func (c CSSuggestion) EncodeWithCoder(coder foundation.INSCoder)
func (CSSuggestion) InitWithCoder ¶
func (c CSSuggestion) InitWithCoder(coder foundation.INSCoder) CSSuggestion
See: https://developer.apple.com/documentation/CoreSpotlight/CSSuggestion/init(coder:)
func (CSSuggestion) LocalizedAttributedSuggestion ¶
func (c CSSuggestion) LocalizedAttributedSuggestion() foundation.NSAttributedString
An attributed string for the localized suggestion.
func (CSSuggestion) SetLocalizedAttributedSuggestion ¶
func (c CSSuggestion) SetLocalizedAttributedSuggestion(value foundation.NSAttributedString)
func (CSSuggestion) SuggestionKind ¶
func (c CSSuggestion) SuggestionKind() CSSuggestionKind
The type of suggestion.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSuggestion/suggestionKind-swift.property
type CSSuggestionArrayHandler ¶
type CSSuggestionArrayHandler = func(*[]CSSuggestion)
CSSuggestionArrayHandler is the signature for a completion handler block.
type CSSuggestionClass ¶
type CSSuggestionClass struct {
// contains filtered or unexported fields
}
func GetCSSuggestionClass ¶
func GetCSSuggestionClass() CSSuggestionClass
GetCSSuggestionClass returns the class object for CSSuggestion.
func (CSSuggestionClass) Alloc ¶
func (cc CSSuggestionClass) Alloc() CSSuggestion
Alloc allocates memory for a new instance of the class.
func (CSSuggestionClass) Class ¶
func (cc CSSuggestionClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type CSSuggestionKind ¶
type CSSuggestionKind int
See: https://developer.apple.com/documentation/CoreSpotlight/CSSuggestion/SuggestionKind-swift.enum
const ( // CSSuggestionKindCustom: Sorts the custom suggestions together. CSSuggestionKindCustom CSSuggestionKind = 1 // CSSuggestionKindDefault: Displays the suggestion normally. CSSuggestionKindDefault CSSuggestionKind = 2 // CSSuggestionKindNone: Blocks the system from displaying the suggestion. CSSuggestionKindNone CSSuggestionKind = 0 )
func (CSSuggestionKind) String ¶
func (e CSSuggestionKind) String() string
type CSUserInteraction ¶
type CSUserInteraction int
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQuery/UserInteractionKind
const ( CSUserInteractionDefault CSUserInteraction = 0 CSUserInteractionFocus CSUserInteraction = 1 CSUserInteractionSelect CSUserInteraction = 0 )
func (CSUserInteraction) String ¶
func (e CSUserInteraction) String() string
type CSUserQuery ¶
type CSUserQuery struct {
CSSearchQuery
}
A type you use to initiate searches from your interface and offer suggested text completions.
Overview ¶
A CSUserQuery object provides the back-end support for your app’s search features. Combine this object with your app’s search interface to perform lexical and semantic searches of human-entered search terms. You can configure a query object to return ranked or unranked results. You can also use it to get a list of suggestions to display from your search interface.
When the text in your search control changes, create a query object to begin searching for results based on the current text. You use a query object only once to perform a search. If the text changes again while a previous query is in progress, cancel the old query and execute the new one. For this reason, it’s a good idea to delay the start of each query until there is a sufficient gap between changes.
Configure the query parameters using a CSUserQueryContext object, which you can reuse for multiple queries. The context lets you configure the behavior for ranking results, specify the maximum number of results and suggestions, and filter the results using a predicate string. When you’re ready to start the query, choose one of the following options:
- Get the value of the CSUserQuery.Responses property and iterate over the results. - Configure the CSSearchQuery.FoundItemsHandler property and call [CSUserQuery.Start] to execute the query manually.
Each query runs until Spotlight returns the requested maximum number of results. If you don’t specify the maximum number of results, Spotlight runs until it returns all results. To end a search before you receive all the results, call the [CSUserQuery.Cancel] method. Cancelling a query is especially important if you’re about to start a new query with an updated search string.
For more information about configuring a CSUserQuery object, see Building a search interface for your app.
Creating a user query ¶
- CSUserQuery.InitWithUserQueryStringUserQueryContext: Creates a new user query that searches for the specified term.
Executing the query automatically ¶
- CSUserQuery.Responses: The matching results and suggestions for the current query string.
- CSUserQuery.SetResponses
- CSUserQuery.Suggestions: An asynchronous sequence of suggested completions for the current query text.
- CSUserQuery.SetSuggestions
Executing the query with handler blocks ¶
- CSUserQuery.FoundSuggestionsHandler: The block to execute when the query delivers a new batch of suggested items.
- CSUserQuery.SetFoundSuggestionsHandler
- CSUserQuery.FoundSuggestionCount: The number of suggested items the query found so far.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQuery
func CSUserQueryFromID ¶
func CSUserQueryFromID(id objc.ID) CSUserQuery
CSUserQueryFromID constructs a CSUserQuery from an objc.ID.
A type you use to initiate searches from your interface and offer suggested text completions.
func NewCSUserQuery ¶
func NewCSUserQuery() CSUserQuery
NewCSUserQuery creates a new CSUserQuery instance.
func NewCSUserQueryWithQueryStringQueryContext ¶
func NewCSUserQueryWithQueryStringQueryContext(queryString string, queryContext ICSSearchQueryContext) CSUserQuery
Initializes and returns a query object with the specified query string and query context.
Return Value ¶
An initialized query object.
Discussion ¶
- queryString: A formatted string that defines the matching criteria to apply to indexed items. To learn how to construct a query string, see Create a query string for your search. - This parameter must not be `nil`. - - queryContext: A CSSearchQueryContext object that focuses the query results.
Discussion ¶
After you create and initialize a query object, and call CSSearchQuery.Start to begin the query, you can’t update or reuse the query object for a new query.
func NewCSUserQueryWithUserQueryStringUserQueryContext ¶
func NewCSUserQueryWithUserQueryStringUserQueryContext(userQueryString string, userQueryContext ICSUserQueryContext) CSUserQuery
Creates a new user query that searches for the specified term.
userQueryString: The term to search for. You may specify an empty string for this parameter.
userQueryContext: A context object with options for how to run the query and generate results.
Return Value ¶
An initialized query object.
func (CSUserQuery) Autorelease ¶
func (c CSUserQuery) Autorelease() CSUserQuery
Autorelease adds the receiver to the current autorelease pool.
func (CSUserQuery) FoundSuggestionCount ¶
func (c CSUserQuery) FoundSuggestionCount() int
The number of suggested items the query found so far.
Discussion ¶
As the query runs, it updates the value in this property to reflect the total number of suggestions.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQuery/foundSuggestionCount
func (CSUserQuery) FoundSuggestionsHandler ¶
func (c CSUserQuery) FoundSuggestionsHandler() CSSuggestionArrayHandler
The block to execute when the query delivers a new batch of suggested items.
Discussion ¶
Specify a value for this property only if you start your query with the [CSUserQuery.Start] method. While the query runs, the query object executes the provided closure one or more times to deliver suggested completions for the current search term. Use your handler to retrieve the suggested completions and update your app’s search interface. The query object stops delivering suggested items when it runs out of suggestions or reaches the maximum number found in the CSUserQueryContext.MaxSuggestionCount property of the query configuration parameters.
If you start the query by accessing the CSUserQuery.Responses property, the query object doesn’t execute the block in this property.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQuery/foundSuggestionsHandler
func (CSUserQuery) InitWithUserQueryStringUserQueryContext ¶
func (c CSUserQuery) InitWithUserQueryStringUserQueryContext(userQueryString string, userQueryContext ICSUserQueryContext) CSUserQuery
Creates a new user query that searches for the specified term.
userQueryString: The term to search for. You may specify an empty string for this parameter.
userQueryContext: A context object with options for how to run the query and generate results.
Return Value ¶
An initialized query object.
func (CSUserQuery) Responses ¶
func (c CSUserQuery) Responses() unsafe.Pointer
The matching results and suggestions for the current query string.
See: https://developer.apple.com/documentation/corespotlight/csuserquery/responses-swift.property
func (CSUserQuery) SetFoundSuggestionsHandler ¶
func (c CSUserQuery) SetFoundSuggestionsHandler(value CSSuggestionArrayHandler)
func (CSUserQuery) SetResponses ¶
func (c CSUserQuery) SetResponses(value unsafe.Pointer)
func (CSUserQuery) SetSuggestions ¶
func (c CSUserQuery) SetSuggestions(value unsafe.Pointer)
func (CSUserQuery) Suggestions ¶
func (c CSUserQuery) Suggestions() unsafe.Pointer
An asynchronous sequence of suggested completions for the current query text.
See: https://developer.apple.com/documentation/corespotlight/csuserquery/suggestions-swift.property
type CSUserQueryClass ¶
type CSUserQueryClass struct {
// contains filtered or unexported fields
}
func GetCSUserQueryClass ¶
func GetCSUserQueryClass() CSUserQueryClass
GetCSUserQueryClass returns the class object for CSUserQuery.
func (CSUserQueryClass) Alloc ¶
func (cc CSUserQueryClass) Alloc() CSUserQuery
Alloc allocates memory for a new instance of the class.
func (CSUserQueryClass) Class ¶
func (cc CSUserQueryClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
func (CSUserQueryClass) Prepare ¶
func (_CSUserQueryClass CSUserQueryClass) Prepare()
Performs one-time tasks that prepare Spotlight to search for content in all search indexes.
Discussion ¶
Call this method once during your app’s lifecycle to give Spotlight time to load the resources it needs for search. This preparation comes at a cost, so measure your app’s performance and determine an appropriate time to call it. For example, you might call it when you load an interface that includes search features.
You don’t need to call this method more than once during the lifetime of your app, but it’s safe to call the method multiple times.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQuery/prepare()
func (CSUserQueryClass) PrepareProtectionClasses ¶
func (_CSUserQueryClass CSUserQueryClass) PrepareProtectionClasses(protectionClasses []string)
Performs one-time tasks that prepare Spotlight to search for content in one or more protected search indexes.
protectionClasses: The file protection types associated with the indexes you plan to search.
Discussion ¶
Call this method once during your app’s lifecycle to give Spotlight time to load the resources it needs for search. This method prepares only the indexes that have the specified protetction levels. This preparation comes at a cost, so measure your app’s performance and determine an appropriate time to call it. For example, you might call it when you load an interface that includes search features.
You don’t need to call this method more than once during the lifetime of your app, but it’s safe to call the method multiple times.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQuery/prepareProtectionClasses(_:)
type CSUserQueryContext ¶
type CSUserQueryContext struct {
CSSearchQueryContext
}
The configuration details to apply to a user query.
Overview ¶
Use an instance of CSUserQueryContext to configure the search parameters for a CSUserQuery object. This object stores configuration details that the query uses to modify the search results it delivers. For example, use this object to specify the maximum number of results or suggestions you want the query to return. You can also use it to enable or disable the ranking of results by Spotlight.
For information about search filters and other configurable query parameters, see the parent class CSSearchQueryContext.
Configuring search options ¶
- CSUserQueryContext.MaxResultCount: The maximum number of search results for the query to return.
- CSUserQueryContext.SetMaxResultCount
- CSUserQueryContext.MaxSuggestionCount: The maximum number of suggested text completions for the query to return.
- CSUserQueryContext.SetMaxSuggestionCount
- CSUserQueryContext.DisableSemanticSearch: A Boolean value that indicates whether to exclude semantic-based search results from the output.
- CSUserQueryContext.SetDisableSemanticSearch
Configuring the ranked results behavior ¶
- CSUserQueryContext.EnableRankedResults: A Boolean value that indicates whether the query sorts results by their relevance.
- CSUserQueryContext.SetEnableRankedResults
- CSUserQueryContext.MaxRankedResultCount: The maximum number of ranked results to return during the query.
- CSUserQueryContext.SetMaxRankedResultCount
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQueryContext
func CSUserQueryContextFromID ¶
func CSUserQueryContextFromID(id objc.ID) CSUserQueryContext
CSUserQueryContextFromID constructs a CSUserQueryContext from an objc.ID.
The configuration details to apply to a user query.
func NewCSUserQueryContext ¶
func NewCSUserQueryContext() CSUserQueryContext
NewCSUserQueryContext creates a new CSUserQueryContext instance.
func NewCSUserQueryContextWithCoder ¶
func NewCSUserQueryContextWithCoder(coder foundation.INSCoder) CSUserQueryContext
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryContext/init(coder:)
func NewCSUserQueryContextWithCurrentSuggestion ¶
func NewCSUserQueryContextWithCurrentSuggestion(currentSuggestion ICSSuggestion) CSUserQueryContext
Creates a new query context object with an optional suggested search string.
currentSuggestion: The suggested text completion that the person selected in your interface. Specify `nil` if the person hasn’t chosen a suggestion.
Return Value ¶
An initialized user query context object. Configure the properties of the returned object and use it to construct a CSUserQuery object.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQueryContext/init(currentSuggestion:)
func (CSUserQueryContext) Autorelease ¶
func (c CSUserQueryContext) Autorelease() CSUserQueryContext
Autorelease adds the receiver to the current autorelease pool.
func (CSUserQueryContext) DisableSemanticSearch ¶
func (c CSUserQueryContext) DisableSemanticSearch() bool
A Boolean value that indicates whether to exclude semantic-based search results from the output.
Discussion ¶
Semantic searching finds matches that are related to the original term, but not necessarily a lexical match. For example, a search for the string “Sun and Moon” might also return a result with a title like “Sol and Luna”. The default value of this property is `true`, which enables the delivery of semantic search results.
You might set this property to `false` when you want to perform only a lexical match. For example, you might disable semantic search when looking for a proper name.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQueryContext/disableSemanticSearch
func (CSUserQueryContext) EnableRankedResults ¶
func (c CSUserQueryContext) EnableRankedResults() bool
A Boolean value that indicates whether the query sorts results by their relevance.
Discussion ¶
The default value of this property is `true`. Setting the property to `false` causes Spotlight to return results as it finds them instead of ordering them by their relevance or saliency to the search term.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQueryContext/enableRankedResults
func (CSUserQueryContext) Init ¶
func (c CSUserQueryContext) Init() CSUserQueryContext
Init initializes the instance.
func (CSUserQueryContext) MaxRankedResultCount ¶
func (c CSUserQueryContext) MaxRankedResultCount() int
The maximum number of ranked results to return during the query.
Discussion ¶
Spotlight ranks a limited number of results by default, but you can change the default value to improve performance or better suit your app’s interface. For example, you might want to return only the five most relevant results due to space constraints in your UI.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQueryContext/maxRankedResultCount
func (CSUserQueryContext) MaxResultCount ¶
func (c CSUserQueryContext) MaxResultCount() int
The maximum number of search results for the query to return.
Discussion ¶
Spotlight returns all results that it finds by default. Set a maximum limit to terminate the search early, which can improve performance.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQueryContext/maxResultCount
func (CSUserQueryContext) MaxSuggestionCount ¶
func (c CSUserQueryContext) MaxSuggestionCount() int
The maximum number of suggested text completions for the query to return.
Discussion ¶
You might specify different limits to account for the amount of available space.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQueryContext/maxSuggestionCount
func (CSUserQueryContext) SetDisableSemanticSearch ¶
func (c CSUserQueryContext) SetDisableSemanticSearch(value bool)
func (CSUserQueryContext) SetEnableRankedResults ¶
func (c CSUserQueryContext) SetEnableRankedResults(value bool)
func (CSUserQueryContext) SetMaxRankedResultCount ¶
func (c CSUserQueryContext) SetMaxRankedResultCount(value int)
func (CSUserQueryContext) SetMaxResultCount ¶
func (c CSUserQueryContext) SetMaxResultCount(value int)
func (CSUserQueryContext) SetMaxSuggestionCount ¶
func (c CSUserQueryContext) SetMaxSuggestionCount(value int)
type CSUserQueryContextClass ¶
type CSUserQueryContextClass struct {
// contains filtered or unexported fields
}
func GetCSUserQueryContextClass ¶
func GetCSUserQueryContextClass() CSUserQueryContextClass
GetCSUserQueryContextClass returns the class object for CSUserQueryContext.
func (CSUserQueryContextClass) Alloc ¶
func (cc CSUserQueryContextClass) Alloc() CSUserQueryContext
Alloc allocates memory for a new instance of the class.
func (CSUserQueryContextClass) Class ¶
func (cc CSUserQueryContextClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type DataErrorHandler ¶
type DataErrorHandler = func(*foundation.NSData, error)
DataErrorHandler handles The block to call when the request has been journaled by the index, which means that the index makes a note that it has to perform this operation.
- error: If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.
The error can be type-asserted to *foundation.NSError for Domain, Code, and UserInfo.
Used by:
type ErrorHandler ¶
type ErrorHandler = func(error)
ErrorHandler handles The block that’s called when the data has been journaled by the index, which means that the index makes a note that it has to perform this operation.
- error: If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.
The error can be type-asserted to *foundation.NSError for Domain, Code, and UserInfo.
Used by:
- CSSearchableIndex.DeleteAllSearchableItemsWithCompletionHandler
- CSSearchableIndex.DeleteSearchableItemsWithDomainIdentifiersCompletionHandler
- CSSearchableIndex.DeleteSearchableItemsWithIdentifiersCompletionHandler
- CSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler
- CSSearchableIndex.EndIndexBatchWithExpectedClientStateNewClientStateCompletionHandler
- CSSearchableIndex.IndexSearchableItemsCompletionHandler
type ICSCustomAttributeKey ¶
type ICSCustomAttributeKey interface {
objectivec.IObject
// Returns a new custom attribute key with the specified name.
InitWithKeyName(keyName string) CSCustomAttributeKey
// Returns a new custom attribute key with the specified name and properties.
InitWithKeyNameSearchableSearchableByDefaultUniqueMultiValued(keyName string, searchable bool, searchableByDefault bool, unique bool, multiValued bool) CSCustomAttributeKey
InitWithCoder(coder foundation.INSCoder) CSCustomAttributeKey
// The name of the custom attribute key.
KeyName() string
// A Boolean value that indicates if the custom attribute is likely to have multiple values, such as arrays, associated with it.
IsMultiValued() bool
// A Boolean value that indicates if the custom attribute can be specified as a search term.
IsSearchable() bool
// A Boolean value that indicates if the custom attribute should be searchable by default.
IsSearchableByDefault() bool
// A Boolean value that indicates if duplicate custom attribute values should be treated as the same value to save storage space.
IsUnique() bool
EncodeWithCoder(coder foundation.INSCoder)
}
An interface definition for the CSCustomAttributeKey class.
Creating a custom attribute ¶
- ICSCustomAttributeKey.InitWithKeyName: Returns a new custom attribute key with the specified name.
- ICSCustomAttributeKey.InitWithKeyNameSearchableSearchableByDefaultUniqueMultiValued: Returns a new custom attribute key with the specified name and properties.
- ICSCustomAttributeKey.InitWithCoder
Getting the attribute details ¶
- ICSCustomAttributeKey.KeyName: The name of the custom attribute key.
- ICSCustomAttributeKey.IsMultiValued: A Boolean value that indicates if the custom attribute is likely to have multiple values, such as arrays, associated with it.
- ICSCustomAttributeKey.IsSearchable: A Boolean value that indicates if the custom attribute can be specified as a search term.
- ICSCustomAttributeKey.IsSearchableByDefault: A Boolean value that indicates if the custom attribute should be searchable by default.
- ICSCustomAttributeKey.IsUnique: A Boolean value that indicates if duplicate custom attribute values should be treated as the same value to save storage space.
See: https://developer.apple.com/documentation/CoreSpotlight/CSCustomAttributeKey
type ICSImportExtension ¶
type ICSImportExtension interface {
objectivec.IObject
// Provides searchable attributes for a file at the specified URL.
UpdateAttributesForFileAtURLError(attributes ICSSearchableItemAttributeSet, contentURL foundation.NSURL) (bool, error)
}
An interface definition for the CSImportExtension class.
Providing searchable attributes ¶
- ICSImportExtension.UpdateAttributesForFileAtURLError: Provides searchable attributes for a file at the specified URL.
See: https://developer.apple.com/documentation/CoreSpotlight/CSImportExtension
type ICSIndexExtensionRequestHandler ¶
type ICSIndexExtensionRequestHandler interface {
objectivec.IObject
DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex ICSSearchableIndex, itemIdentifier string, typeIdentifier string) (foundation.NSData, error)
FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex ICSSearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool) (foundation.NSURL, error)
// Tells the delegate that the index throttling has finished.
SearchableIndexDidFinishThrottle(searchableIndex ICSSearchableIndex)
// Tells the delegate that indexing is being throttled.
SearchableIndexDidThrottle(searchableIndex ICSSearchableIndex)
// Tells the delegate to reindex all searchable data and clear all local state information.
SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex ICSSearchableIndex, acknowledgementHandler VoidHandler)
// Tells the delegate to reindex the searchable items associated with the specified identifiers.
SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex ICSSearchableIndex, identifiers []string, acknowledgementHandler VoidHandler)
// Tells the delegate that the framework updated the list of searchable items.
SearchableItemsDidUpdate(items []CSSearchableItem)
SearchableItemsForIdentifiersProtectionClassSearchableItemsHandler(identifiers []string, protectionClass foundation.NSFileProtectionType, searchableItemsHandler CSSearchableItemArrayHandler)
// Requests that the delegate provide searchable items for the provided identifiers.
SearchableItemsForIdentifiersSearchableItemsHandler(identifiers []string, searchableItemsHandler CSSearchableItemArrayHandler)
}
An interface definition for the CSIndexExtensionRequestHandler class.
See: https://developer.apple.com/documentation/CoreSpotlight/CSIndexExtensionRequestHandler
type ICSLocalizedString ¶
type ICSLocalizedString interface {
foundation.INSString
// Initializes a [CSLocalizedString] object with the specified dictionary of localized strings.
InitWithLocalizedStrings(localizedStrings foundation.INSDictionary) CSLocalizedString
// Returns the localized string for the current language.
LocalizedString() string
}
An interface definition for the CSLocalizedString class.
Specifying localized strings ¶
- ICSLocalizedString.InitWithLocalizedStrings: Initializes a CSLocalizedString object with the specified dictionary of localized strings.
Getting a localized string ¶
- ICSLocalizedString.LocalizedString: Returns the localized string for the current language.
See: https://developer.apple.com/documentation/CoreSpotlight/CSLocalizedString
type ICSPerson ¶
type ICSPerson interface {
objectivec.IObject
// Returns a new [CSPerson] object initialized with the specified display name and contact attributes.
InitWithDisplayNameHandlesHandleIdentifier(displayName string, handles []string, handleIdentifier string) CSPerson
InitWithCoder(coder foundation.INSCoder) CSPerson
// The identifier for the contact associated with the person.
ContactIdentifier() string
SetContactIdentifier(value string)
// A display name for the person.
DisplayName() string
// A key that identifies the type of contact property represented by the person object’s handle.
HandleIdentifier() string
// An array of contact handles related to the person.
Handles() []string
EncodeWithCoder(coder foundation.INSCoder)
}
An interface definition for the CSPerson class.
Initializing a person object ¶
- ICSPerson.InitWithDisplayNameHandlesHandleIdentifier: Returns a new CSPerson object initialized with the specified display name and contact attributes.
- ICSPerson.InitWithCoder
Accessing person properties ¶
- ICSPerson.ContactIdentifier: The identifier for the contact associated with the person.
- ICSPerson.SetContactIdentifier
- ICSPerson.DisplayName: A display name for the person.
- ICSPerson.HandleIdentifier: A key that identifies the type of contact property represented by the person object’s handle.
- ICSPerson.Handles: An array of contact handles related to the person.
See: https://developer.apple.com/documentation/CoreSpotlight/CSPerson
type ICSSearchQuery ¶
type ICSSearchQuery interface {
objectivec.IObject
// Initializes and returns a query object with the specified query string and query context.
InitWithQueryStringQueryContext(queryString string, queryContext ICSSearchQueryContext) CSSearchQuery
// The protection types of the indexes you want to search.
ProtectionClasses() []string
SetProtectionClasses(value []string)
// The results that match the current query string.
Results() unsafe.Pointer
SetResults(value unsafe.Pointer)
// Starts searching the index for items that match the current query string and parameters.
Start()
// Cancels the current query operation.
Cancel()
// A Boolean value that indicates whether the current query is no longer running.
IsCancelled() bool
// The number of matching items found for the given query string.
FoundItemCount() uint
// The block to execute when the query delivers a new batch of matching items.
FoundItemsHandler() CSSearchableItemArrayHandler
SetFoundItemsHandler(value CSSearchableItemArrayHandler)
// The block to execute when the query finishes delivering all results.
CompletionHandler() ErrorHandler
SetCompletionHandler(value ErrorHandler)
}
An interface definition for the CSSearchQuery class.
Creating a query object ¶
- ICSSearchQuery.InitWithQueryStringQueryContext: Initializes and returns a query object with the specified query string and query context.
Specifying the indexes to search ¶
- ICSSearchQuery.ProtectionClasses: The protection types of the indexes you want to search.
- ICSSearchQuery.SetProtectionClasses
Executing the query automatically ¶
- ICSSearchQuery.Results: The results that match the current query string.
- ICSSearchQuery.SetResults
Executing the query with handler blocks ¶
- ICSSearchQuery.Start: Starts searching the index for items that match the current query string and parameters.
- ICSSearchQuery.Cancel: Cancels the current query operation.
- ICSSearchQuery.IsCancelled: A Boolean value that indicates whether the current query is no longer running.
- ICSSearchQuery.FoundItemCount: The number of matching items found for the given query string.
- ICSSearchQuery.FoundItemsHandler: The block to execute when the query delivers a new batch of matching items.
- ICSSearchQuery.SetFoundItemsHandler
- ICSSearchQuery.CompletionHandler: The block to execute when the query finishes delivering all results.
- ICSSearchQuery.SetCompletionHandler
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQuery
type ICSSearchQueryContext ¶
type ICSSearchQueryContext interface {
objectivec.IObject
// The attributes the system fetches for the searchable items.
FetchAttributes() []string
SetFetchAttributes(value []string)
// The language used for the query.
KeyboardLanguage() string
SetKeyboardLanguage(value string)
// The query source options to allow or deny Mail messages in the search.
SourceOptions() CSSearchQuerySourceOptions
SetSourceOptions(value CSSearchQuerySourceOptions)
// The query string used to filter the results.
FilterQueries() []string
SetFilterQueries(value []string)
InitWithCoder(coder foundation.INSCoder) CSSearchQueryContext
EncodeWithCoder(coder foundation.INSCoder)
}
An interface definition for the CSSearchQueryContext class.
Configuring search behavior ¶
- ICSSearchQueryContext.FetchAttributes: The attributes the system fetches for the searchable items.
- ICSSearchQueryContext.SetFetchAttributes
- ICSSearchQueryContext.KeyboardLanguage: The language used for the query.
- ICSSearchQueryContext.SetKeyboardLanguage
- ICSSearchQueryContext.SourceOptions: The query source options to allow or deny Mail messages in the search.
- ICSSearchQueryContext.SetSourceOptions
Filtering the results ¶
- ICSSearchQueryContext.FilterQueries: The query string used to filter the results.
- ICSSearchQueryContext.SetFilterQueries
Initializers ¶
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchQueryContext
type ICSSearchableIndex ¶
type ICSSearchableIndex interface {
objectivec.IObject
// Returns an on-device index with the specified name.
InitWithName(name string) CSSearchableIndex
// Returns an on-device index with the specified name and data protection class.
InitWithNameProtectionClass(name string, protectionClass foundation.NSFileProtectionType) CSSearchableIndex
// The delegate object that can handle index-management tasks.
IndexDelegate() CSSearchableIndexDelegate
SetIndexDelegate(value CSSearchableIndexDelegate)
// Adds or updates items in the index.
IndexSearchableItemsCompletionHandler(items []CSSearchableItem, completionHandler ErrorHandler)
// Deletes all searchable items from the index.
DeleteAllSearchableItemsWithCompletionHandler(completionHandler ErrorHandler)
// Removes from the index all searchable items associated with the specified domain.
DeleteSearchableItemsWithDomainIdentifiersCompletionHandler(domainIdentifiers []string, completionHandler ErrorHandler)
// Removes from the index all items with the specified identifiers.
DeleteSearchableItemsWithIdentifiersCompletionHandler(identifiers []string, completionHandler ErrorHandler)
// Begins a batch of updates to an index.
BeginIndexBatch()
// Ends a batch of index updates and stores the specified state information.
EndIndexBatchWithClientStateCompletionHandler(clientState foundation.NSData, completionHandler ErrorHandler)
// Ends a batch of index updates and stores the specified state information.
EndIndexBatchWithExpectedClientStateNewClientStateCompletionHandler(expectedClientState foundation.NSData, newClientState foundation.NSData, completionHandler ErrorHandler)
// Fetches the app’s most recent client state information asynchronously.
FetchLastClientStateWithCompletionHandler(completionHandler DataErrorHandler)
// Fetches data from an external provider.
FetchDataForBundleIdentifierItemIdentifierContentTypeCompletionHandler(bundleIdentifier string, itemIdentifier string, contentType uniformtypeidentifiers.UTType, completionHandler DataErrorHandler)
ProtectionClass() foundation.NSFileProtectionType
}
An interface definition for the CSSearchableIndex class.
Creating an index ¶
- ICSSearchableIndex.InitWithName: Returns an on-device index with the specified name.
- ICSSearchableIndex.InitWithNameProtectionClass: Returns an on-device index with the specified name and data protection class.
Responding to index-related changes ¶
- ICSSearchableIndex.IndexDelegate: The delegate object that can handle index-management tasks.
- ICSSearchableIndex.SetIndexDelegate
Managing items in an index ¶
- ICSSearchableIndex.IndexSearchableItemsCompletionHandler: Adds or updates items in the index.
- ICSSearchableIndex.DeleteAllSearchableItemsWithCompletionHandler: Deletes all searchable items from the index.
- ICSSearchableIndex.DeleteSearchableItemsWithDomainIdentifiersCompletionHandler: Removes from the index all searchable items associated with the specified domain.
- ICSSearchableIndex.DeleteSearchableItemsWithIdentifiersCompletionHandler: Removes from the index all items with the specified identifiers.
Batching index updates ¶
- ICSSearchableIndex.BeginIndexBatch: Begins a batch of updates to an index.
- ICSSearchableIndex.EndIndexBatchWithClientStateCompletionHandler: Ends a batch of index updates and stores the specified state information.
- ICSSearchableIndex.EndIndexBatchWithExpectedClientStateNewClientStateCompletionHandler: Ends a batch of index updates and stores the specified state information.
- ICSSearchableIndex.FetchLastClientStateWithCompletionHandler: Fetches the app’s most recent client state information asynchronously.
Handling drag and drop content ¶
- ICSSearchableIndex.FetchDataForBundleIdentifierItemIdentifierContentTypeCompletionHandler: Fetches data from an external provider.
Getting the protection class ¶
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableIndex
type ICSSearchableItem ¶
type ICSSearchableItem interface {
objectivec.IObject
// Returns a searchable item associated with the specified identifier, domain identifier, and attribute set.
InitWithUniqueIdentifierDomainIdentifierAttributeSet(uniqueIdentifier string, domainIdentifier string, attributeSet ICSSearchableItemAttributeSet) CSSearchableItem
InitWithCoder(coder foundation.INSCoder) CSSearchableItem
// The value that uniquely identifies the searchable item within your app.
UniqueIdentifier() string
SetUniqueIdentifier(value string)
// An optional identifier that represents the domain or owner of the item.
DomainIdentifier() string
SetDomainIdentifier(value string)
// The set of attributes that contain metadata associated with the item in a [CSSearchableItemAttributeSet](<https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet>) object.
AttributeSet() ICSSearchableItemAttributeSet
SetAttributeSet(value ICSSearchableItemAttributeSet)
// The date after which the searchable item should no longer exist.
ExpirationDate() foundation.NSDate
SetExpirationDate(value foundation.NSDate)
// A Boolean value that indicates whether to treat the item as an update instead of a new item.
IsUpdate() bool
SetIsUpdate(value bool)
UpdateListenerOptions() CSSearchableItemUpdateListenerOptions
SetUpdateListenerOptions(value CSSearchableItemUpdateListenerOptions)
// Compares two items by rank and returns the result.
CompareByRank(other ICSSearchableItem) foundation.ComparisonResult
EncodeWithCoder(coder foundation.INSCoder)
}
An interface definition for the CSSearchableItem class.
Getting a searchable item ¶
- ICSSearchableItem.InitWithUniqueIdentifierDomainIdentifierAttributeSet: Returns a searchable item associated with the specified identifier, domain identifier, and attribute set.
- ICSSearchableItem.InitWithCoder
Setting attributes on a searchable item ¶
- ICSSearchableItem.UniqueIdentifier: The value that uniquely identifies the searchable item within your app.
- ICSSearchableItem.SetUniqueIdentifier
- ICSSearchableItem.DomainIdentifier: An optional identifier that represents the domain or owner of the item.
- ICSSearchableItem.SetDomainIdentifier
- ICSSearchableItem.AttributeSet: The set of attributes that contain metadata associated with the item in a CSSearchableItemAttributeSet(<https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet>) object.
- ICSSearchableItem.SetAttributeSet
- ICSSearchableItem.ExpirationDate: The date after which the searchable item should no longer exist.
- ICSSearchableItem.SetExpirationDate
- ICSSearchableItem.IsUpdate: A Boolean value that indicates whether to treat the item as an update instead of a new item.
- ICSSearchableItem.SetIsUpdate
- ICSSearchableItem.UpdateListenerOptions
- ICSSearchableItem.SetUpdateListenerOptions
Comparing items ¶
- ICSSearchableItem.CompareByRank: Compares two items by rank and returns the result.
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItem
type ICSSearchableItemAttributeSet ¶
type ICSSearchableItemAttributeSet interface {
objectivec.IObject
// Creates an attribute set for the specified content type.
InitWithContentType(contentType uniformtypeidentifiers.UTType) CSSearchableItemAttributeSet
InitWithCoder(coder foundation.INSCoder) CSSearchableItemAttributeSet
// Sets the value for a custom attribute key.
SetValueForCustomKey(value foundation.NSSecureCoding, key ICSCustomAttributeKey)
// Returns the value associated with the specified custom attribute key.
ValueForCustomKey(key ICSCustomAttributeKey) foundation.NSSecureCoding
// A Boolean value that indicates whether the mail or messages content represents a prioritized item.
IsPriority() foundation.NSNumber
// A string that presents the Apple Intelligence summarization of the item.
TextContentSummary() string
// A string that represents the text the system transcribed.
TranscribedTextContent() string
SetTranscribedTextContent(value string)
// An array of identifiers that corresponds to data representations the delegate provides.
ProviderDataTypeIdentifiers() []string
SetProviderDataTypeIdentifiers(value []string)
// An array of identifiers that corresponds to file representations the delegate provides.
ProviderFileTypeIdentifiers() []string
SetProviderFileTypeIdentifiers(value []string)
// An array of identifiers that corresponds to in-place file representations the delegate provides.
ProviderInPlaceFileTypeIdentifiers() []string
SetProviderInPlaceFileTypeIdentifiers(value []string)
// An array of localized strings that represent alternate display names for the item.
AlternateNames() []string
SetAlternateNames(value []string)
// The uniform type identifier (UTI) of the item.
ContentType() string
SetContentType(value string)
// An attribute type that identifies a custom hierarchy of types to describe the attributes of your item.
ContentTypeTree() []string
SetContentTypeTree(value []string)
// The file URL of the content to index.
ContentURL() foundation.NSURL
SetContentURL(value foundation.NSURL)
// The local file URL of the thumbnail image for the item when Dark Mode is active.
DarkThumbnailURL() foundation.NSURL
SetDarkThumbnailURL(value foundation.NSURL)
// A localized string that contains the name of the item, suitable to display in the user interface.
DisplayName() string
SetDisplayName(value string)
// An array of keywords associated with the item, such as work, birthday, important, and so on.
Keywords() []string
SetKeywords(value []string)
// The date on which the last metadata attribute was changed.
MetadataModificationDate() foundation.NSDate
SetMetadataModificationDate(value foundation.NSDate)
// The complete path to the item.
Path() string
SetPath(value string)
// A number that indicates the relative importance of the item among other items from the app.
RankingHint() foundation.NSNumber
SetRankingHint(value foundation.NSNumber)
// The unique identifier for the item to which the activity is related.
RelatedUniqueIdentifier() string
SetRelatedUniqueIdentifier(value string)
// Image data that represents the thumbnail of the item.
ThumbnailData() foundation.NSData
SetThumbnailData(value foundation.NSData)
// The local file URL of the thumbnail image for the item.
ThumbnailURL() foundation.NSURL
SetThumbnailURL(value foundation.NSURL)
// The title of the item.
Title() string
SetTitle(value string)
// An identifier that represents the domain or owner of the item.
DomainIdentifier() string
SetDomainIdentifier(value string)
// The unique identifier for the item to which the activity is related, but not linked.
WeakRelatedUniqueIdentifier() string
SetWeakRelatedUniqueIdentifier(value string)
// A class of entity for which the item is intended or useful.
Audiences() []string
SetAudiences(value []string)
// A description of the item’s content.
ContentDescription() string
SetContentDescription(value string)
// The name of the app that created the content.
Creator() string
SetCreator(value string)
// The name of the apps that converted the original content into a PDF stream.
EncodingApplications() []string
SetEncodingApplications(value []string)
// The size of the document file.
FileSize() foundation.NSNumber
SetFileSize(value foundation.NSNumber)
// An array of font names the document uses.
FontNames() []string
SetFontNames(value []string)
// A formal identifier that references the document the item represents.
Identifier() string
SetIdentifier(value string)
// A description of the kind of document the item represents.
Kind() string
SetKind(value string)
// The number of pages in the document.
PageCount() foundation.NSNumber
SetPageCount(value foundation.NSNumber)
// The height of the document page, in points (72 points per inch).
PageHeight() foundation.NSNumber
SetPageHeight(value foundation.NSNumber)
// The width of the document page, in points (72 points per inch).
PageWidth() foundation.NSNumber
SetPageWidth(value foundation.NSNumber)
// The security method (a type of encryption) that protects the document file.
SecurityMethod() string
SetSecurityMethod(value string)
// The subject of the document.
Subject() string
SetSubject(value string)
// The theme of the document.
Theme() string
SetTheme(value string)
// A value that indicates the user created the item.
UserCreated() foundation.NSNumber
SetUserCreated(value foundation.NSNumber)
// A value that indicates the user selected the item.
UserCurated() foundation.NSNumber
SetUserCurated(value foundation.NSNumber)
// A value that indicates the user purchased or owns the item.
UserOwned() foundation.NSNumber
SetUserOwned(value foundation.NSNumber)
// A value that indicates if the event covers an entire day.
AllDay() foundation.NSNumber
SetAllDay(value foundation.NSNumber)
// The date on which the item was completed.
CompletionDate() foundation.NSDate
SetCompletionDate(value foundation.NSDate)
// The date on which the item is due.
DueDate() foundation.NSDate
SetDueDate(value foundation.NSDate)
// The end date for the item.
EndDate() foundation.NSDate
SetEndDate(value foundation.NSDate)
// An array of important dates associated with the item.
ImportantDates() []foundation.NSDate
SetImportantDates(value []foundation.NSDate)
// The start date for the item.
StartDate() foundation.NSDate
SetStartDate(value foundation.NSDate)
// The altitude of the item in meters above sea level, expressed using the WGS84 datum.
Altitude() foundation.NSNumber
SetAltitude(value foundation.NSNumber)
// The city of the item’s origin according to guidelines that the provider establishes.
City() string
SetCity(value string)
// 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.
Country() string
SetCountry(value string)
// Information about the GPS area.
GPSAreaInformation() string
SetGPSAreaInformation(value string)
// The GPS dilution of precision value.
GPSDOP() foundation.NSNumber
SetGPSDOP(value foundation.NSNumber)
// The date and time related to the GPS value.
GPSDateStamp() foundation.NSDate
SetGPSDateStamp(value foundation.NSDate)
// The bearing to the destination point.
GPSDestBearing() foundation.NSNumber
SetGPSDestBearing(value foundation.NSNumber)
// The distance to the destination point.
GPSDestDistance() foundation.NSNumber
SetGPSDestDistance(value foundation.NSNumber)
// The latitude of the destination point.
GPSDestLatitude() foundation.NSNumber
SetGPSDestLatitude(value foundation.NSNumber)
// The longitude of the destination point.
GPSDestLongitude() foundation.NSNumber
SetGPSDestLongitude(value foundation.NSNumber)
// The differential correction applied to the GPS receiver.
GPSDifferental() foundation.NSNumber
SetGPSDifferental(value foundation.NSNumber)
// The geodetic data that the GPS receiver uses.
GPSMapDatum() string
SetGPSMapDatum(value string)
// The measurement precision mode in use by the GPS receiver.
GPSMeasureMode() string
SetGPSMeasureMode(value string)
// The location finding method that the GPS receiver uses.
GPSProcessingMethod() string
SetGPSProcessingMethod(value string)
// The status of the GPS receiver.
GPSStatus() string
SetGPSStatus(value string)
// The direction of travel of the item in degrees from true north.
GPSTrack() foundation.NSNumber
SetGPSTrack(value foundation.NSNumber)
// A publishable string that provides a synopsis of the contents of the item.
Headline() string
SetHeadline(value string)
// The direction of the item’s image in degrees from true north.
ImageDirection() foundation.NSNumber
SetImageDirection(value foundation.NSNumber)
// Instructions that concern the use of the item, such as an embargo or warning.
Instructions() string
SetInstructions(value string)
// The latitude of the item, in degrees north of the equator, expressed using the WGS84 datum.
Latitude() foundation.NSNumber
SetLatitude(value foundation.NSNumber)
// The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum.
Longitude() foundation.NSNumber
SetLongitude(value foundation.NSNumber)
// The name of the location or point of interest associated with the item.
NamedLocation() string
SetNamedLocation(value string)
// The speed of the item, in kilometers per hour.
Speed() foundation.NSNumber
SetSpeed(value foundation.NSNumber)
// The province or state of origin according to guidelines the provider establishes.
StateOrProvince() string
SetStateOrProvince(value string)
// The timestamp on the item.
Timestamp() foundation.NSDate
SetTimestamp(value foundation.NSDate)
// The fully formatted address of the item, received from MapKit.
FullyFormattedAddress() string
SetFullyFormattedAddress(value string)
// The postal code for the item according to guidelines the provider establishes.
PostalCode() string
SetPostalCode(value string)
// The sublocation, such as a street number, for the item according to guidelines the provider establishes.
SubThoroughfare() string
SetSubThoroughfare(value string)
// The thoroughfare, such as a street name, associated with the location for the item according to guidelines the provider establishes.
Thoroughfare() string
SetThoroughfare(value string)
// A comment related to the media file.
Comment() string
SetComment(value string)
// The creation date of an edited or optimized version of the song or composition.
ContentCreationDate() foundation.NSDate
SetContentCreationDate(value foundation.NSDate)
// The date on which the contents of the file was last modified.
ContentModificationDate() foundation.NSDate
SetContentModificationDate(value foundation.NSDate)
// An array of sources from which the media was obtained.
ContentSources() []string
SetContentSources(value []string)
// The copyright date of the content.
Copyright() string
SetCopyright(value string)
// The most recent date on which the file was downloaded or received.
DownloadedDate() foundation.NSDate
SetDownloadedDate(value foundation.NSDate)
// A list of editors who have worked on the file.
Editors() []string
SetEditors(value []string)
// The date on which the file was last used.
LastUsedDate() foundation.NSDate
SetLastUsedDate(value foundation.NSDate)
// A list of people who are visible in an image or movie or written about in a document.
Participants() []string
SetParticipants(value []string)
// A list of projects of which this file is a part.
Projects() []string
SetProjects(value []string)
// The date on which the item was moved into its current location.
AddedDate() foundation.NSDate
SetAddedDate(value foundation.NSDate)
// The codecs used to encode/decode the media.
Codecs() []string
SetCodecs(value []string)
// A list of contacts who are associated with the content in some way, not including the author.
ContactKeywords() []string
SetContactKeywords(value []string)
// The delivery type of the file.
DeliveryType() foundation.NSNumber
SetDeliveryType(value foundation.NSNumber)
// The duration (if appropriate) of the content of the file, in seconds.
Duration() foundation.NSNumber
SetDuration(value foundation.NSNumber)
// The media types present in the content.
MediaTypes() []string
SetMediaTypes(value []string)
// A list of companies or organizations that created the content.
Organizations() []string
SetOrganizations(value []string)
// A value that indicates if the content is prepared for streaming.
Streamable() foundation.NSNumber
SetStreamable(value foundation.NSNumber)
// The total bit rate of the media, combining audio and video.
TotalBitRate() foundation.NSNumber
SetTotalBitRate(value foundation.NSNumber)
// The audio bit rate of the media.
AudioBitRate() foundation.NSNumber
SetAudioBitRate(value foundation.NSNumber)
// A version string associated with the file.
Version() string
SetVersion(value string)
// The video bit rate of the media.
VideoBitRate() foundation.NSNumber
SetVideoBitRate(value foundation.NSNumber)
// A list of people, organizations, or services that made contributions to the media content.
Contributors() []string
SetContributors(value []string)
// A list of the included languages for the intellectual content of the media.
Languages() []string
SetLanguages(value []string)
// A list of people, organizations, services, or other entities responsible for making the media available.
Publishers() []string
SetPublishers(value []string)
// A link to information about the rights held in and over the media.
Rights() string
SetRights(value string)
// Indicates the role of the content creator.
Role() string
SetRole(value string)
// A value that indicates if the media contains explicit content.
ContentRating() foundation.NSNumber
SetContentRating(value foundation.NSNumber)
// A list of descriptors that specify the extent or scope of the media.
Coverage() []string
SetCoverage(value []string)
// The name of the director of the media (for example, a movie director).
Director() string
SetDirector(value string)
// The genre of the media.
Genre() string
SetGenre(value string)
// Information about the media.
Information() string
SetInformation(value string)
// A value that indicates if the media is local.
Local() foundation.NSNumber
SetLocal(value foundation.NSNumber)
// The original format of the media.
OriginalFormat() string
SetOriginalFormat(value string)
// The original source of the media.
OriginalSource() string
SetOriginalSource(value string)
// A list of performers in the media.
Performers() []string
SetPerformers(value []string)
// A user-supplied play count for the media.
PlayCount() foundation.NSNumber
SetPlayCount(value foundation.NSNumber)
// The producer of the content.
Producer() string
SetProducer(value string)
// The user-supplied rating of the media.
Rating() foundation.NSNumber
SetRating(value foundation.NSNumber)
// A description of the rating.
RatingDescription() string
SetRatingDescription(value string)
// The URL associated with the media.
URL() foundation.NSURL
SetURL(value foundation.NSURL)
// The title for a collection of audio media.
Album() string
SetAlbum(value string)
// The artist associated with the media.
Artist() string
SetArtist(value string)
// The number of channels in the audio data that the file contains.
AudioChannelCount() foundation.NSNumber
SetAudioChannelCount(value foundation.NSNumber)
// The name of the application that encoded the data the audio file contains.
AudioEncodingApplication() string
SetAudioEncodingApplication(value string)
// 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.
AudioSampleRate() foundation.NSNumber
SetAudioSampleRate(value foundation.NSNumber)
// The track number of a song or audio composition when part of an album.
AudioTrackNumber() foundation.NSNumber
SetAudioTrackNumber(value foundation.NSNumber)
// The composer of the song or audio composition that the audio file contains.
Composer() string
SetComposer(value string)
// The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m.
KeySignature() string
SetKeySignature(value string)
// The lyricist or text writer for the song or audio composition that the file contains.
Lyricist() string
SetLyricist(value string)
// The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical.
MusicalGenre() string
SetMusicalGenre(value string)
// The recording date of the song or composition.
RecordingDate() foundation.NSDate
SetRecordingDate(value foundation.NSDate)
// The tempo of the music that the audio file contains, in beats per minute.
Tempo() foundation.NSNumber
SetTempo(value foundation.NSNumber)
// The time signature of the musical composition that the audio or MIDI file contains, in a string, such as “4/4” or “7/8”.
TimeSignature() string
SetTimeSignature(value string)
// A value that indicates whether the MIDI sequence the file contains is set up for use with a general MIDI device.
GeneralMIDISequence() foundation.NSNumber
SetGeneralMIDISequence(value foundation.NSNumber)
// The category of the instrument associated with the audio file.
MusicalInstrumentCategory() string
SetMusicalInstrumentCategory(value string)
// The name of an instrument within the context of an instrument category.
MusicalInstrumentName() string
SetMusicalInstrumentName(value string)
// The ISO speed setting at the time the camera captured the image.
ISOSpeed() foundation.NSNumber
SetISOSpeed(value foundation.NSNumber)
// The manufacturer of the device that captured the image.
AcquisitionMake() string
SetAcquisitionMake(value string)
// The model of the device that captured the image.
AcquisitionModel() string
SetAcquisitionModel(value string)
// The size of the lens aperture at the time the camera captured the image, as a log-scale APEX value.
Aperture() foundation.NSNumber
SetAperture(value foundation.NSNumber)
// The number of bits per sample.
BitsPerSample() foundation.NSNumber
SetBitsPerSample(value foundation.NSNumber)
// The owner of the camera that captured the image.
CameraOwner() string
SetCameraOwner(value string)
// The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr.
ColorSpace() string
SetColorSpace(value string)
// A value that indicates if the camera used a flash to capture the image.
FlashOn() foundation.NSNumber
SetFlashOn(value foundation.NSNumber)
// The actual focal length of the lens, in millimeters.
FocalLength() foundation.NSNumber
SetFocalLength(value foundation.NSNumber)
// A value that indicates if the focal length is 35mm.
FocalLength35mm() foundation.NSNumber
SetFocalLength35mm(value foundation.NSNumber)
// An array that contains the names of the various layers in the file.
LayerNames() []string
SetLayerNames(value []string)
// The model of the lens that captured the image.
LensModel() string
SetLensModel(value string)
// The orientation of the data.
Orientation() foundation.NSNumber
SetOrientation(value foundation.NSNumber)
// The total number of pixels in the image.
PixelCount() foundation.NSNumber
SetPixelCount(value foundation.NSNumber)
// The height of the item, such as image or video frame height, in pixels.
PixelHeight() foundation.NSNumber
SetPixelHeight(value foundation.NSNumber)
// The width of the item, such as image or video frame width, in pixels.
PixelWidth() foundation.NSNumber
SetPixelWidth(value foundation.NSNumber)
// The white balance setting when the camera captured the image.
WhiteBalance() foundation.NSNumber
SetWhiteBalance(value foundation.NSNumber)
// The version of GPS Info IFD header that was used to generate the metadata for the image.
EXIFGPSVersion() string
SetEXIFGPSVersion(value string)
// The version of the EXIF header that was used to generate the metadata for the image.
EXIFVersion() string
SetEXIFVersion(value string)
// The mode the camera used for the exposure of the image.
ExposureMode() foundation.NSNumber
SetExposureMode(value foundation.NSNumber)
// The class of the program the camera used to set exposure when capturing the image.
ExposureProgram() string
SetExposureProgram(value string)
// The time that the lens was open during exposure, in seconds.
ExposureTime() foundation.NSNumber
SetExposureTime(value foundation.NSNumber)
// The time that the lens was open during exposure, in a string, such as “1/250 seconds”.
ExposureTimeString() string
SetExposureTimeString(value string)
// The focal length of the lens, divided by the diameter of the aperture when the camera captured the image.
FNumber() foundation.NSNumber
SetFNumber(value foundation.NSNumber)
// Indicates if the image file has an alpha channel.
HasAlphaChannel() foundation.NSNumber
SetHasAlphaChannel(value foundation.NSNumber)
// The smallest F number of the lens.
MaxAperture() foundation.NSNumber
SetMaxAperture(value foundation.NSNumber)
// The metering mode.
MeteringMode() string
SetMeteringMode(value string)
// The name of the color profile the camera used for the image.
ProfileName() string
SetProfileName(value string)
// A value that indicates if the camera used red-eye reduction when capturing the image.
RedEyeOn() foundation.NSNumber
SetRedEyeOn(value foundation.NSNumber)
// The resolution height of the image, in DPI.
ResolutionHeightDPI() foundation.NSNumber
SetResolutionHeightDPI(value foundation.NSNumber)
// The resolution width of the image, in DPI.
ResolutionWidthDPI() foundation.NSNumber
SetResolutionWidthDPI(value foundation.NSNumber)
// The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string.
HTMLContentData() foundation.NSData
SetHTMLContentData(value foundation.NSData)
// An array of the canonical handles for the account with which the message is associated.
AccountHandles() []string
SetAccountHandles(value []string)
// The unique identifier for the account with which the message is associated, if any.
AccountIdentifier() string
SetAccountIdentifier(value string)
// An array of [CSPerson](<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the Cc: field in an email message.
AdditionalRecipients() []CSPerson
SetAdditionalRecipients(value []CSPerson)
// An array of addresses associated with the author of the message.
AuthorAddresses() []string
SetAuthorAddresses(value []string)
// An array of email addresses associated with the author of the message.
AuthorEmailAddresses() []string
SetAuthorEmailAddresses(value []string)
// An array of names representing the authors who have worked on the message.
AuthorNames() []string
SetAuthorNames(value []string)
// An array of [CSPerson](<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the From: field in an item.
Authors() []CSPerson
SetAuthors(value []CSPerson)
// An array of email addresses associated with the message.
EmailAddresses() []string
SetEmailAddresses(value []string)
// A dictionary that contains all the headers of the message.
EmailHeaders() foundation.INSDictionary
SetEmailHeaders(value foundation.INSDictionary)
// An array of [CSPerson](<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the Bcc: field in an email message.
HiddenAdditionalRecipients() []CSPerson
SetHiddenAdditionalRecipients(value []CSPerson)
// An array of instant message addresses for the message.
InstantMessageAddresses() []string
SetInstantMessageAddresses(value []string)
// A value that indicates if the message is likely to be considered junk.
LikelyJunk() foundation.NSNumber
SetLikelyJunk(value foundation.NSNumber)
// An array of mailbox identifiers associated with the message.
MailboxIdentifiers() []string
SetMailboxIdentifiers(value []string)
// An array of phone numbers associated with the message.
PhoneNumbers() []string
SetPhoneNumbers(value []string)
// An array of [CSPerson](<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the To: field in an email message.
PrimaryRecipients() []CSPerson
SetPrimaryRecipients(value []CSPerson)
// An array of addresses associated with the recipients of the message.
RecipientAddresses() []string
SetRecipientAddresses(value []string)
// An array of email addresses associated with the recipient.
RecipientEmailAddresses() []string
SetRecipientEmailAddresses(value []string)
// An array of names representing the recipients of this message.
RecipientNames() []string
SetRecipientNames(value []string)
// The textual content of the message.
TextContent() string
SetTextContent(value string)
// A localized string that specifies the name of a container to which the item belongs, suitable to display in the user interface.
ContainerDisplayName() string
SetContainerDisplayName(value string)
// The identifier of the container to which the item belongs.
ContainerIdentifier() string
SetContainerIdentifier(value string)
// The order of the item within the container.
ContainerOrder() foundation.NSNumber
SetContainerOrder(value foundation.NSNumber)
// The title of the container to which the item belongs.
ContainerTitle() string
SetContainerTitle(value string)
// A value that indicates whether the item contains information sufficient to provide navigation to the location it represents.
// A value that indicates whether the item contains information sufficient to allow a phone call to a number associated with the item.
SupportsPhoneCall() foundation.NSNumber
SetSupportsPhoneCall(value foundation.NSNumber)
MoveFrom(sourceAttributeSet ICSSearchableItemAttributeSet)
EncodeWithCoder(coder foundation.INSCoder)
}
An interface definition for the CSSearchableItemAttributeSet class.
Creating an attribute set ¶
- ICSSearchableItemAttributeSet.InitWithContentType: Creates an attribute set for the specified content type.
- ICSSearchableItemAttributeSet.InitWithCoder
Accessing custom attributes ¶
- ICSSearchableItemAttributeSet.SetValueForCustomKey: Sets the value for a custom attribute key.
- ICSSearchableItemAttributeSet.ValueForCustomKey: Returns the value associated with the specified custom attribute key.
Handling Apple Intelligence prioritization and summarization ¶
- ICSSearchableItemAttributeSet.IsPriority: A Boolean value that indicates whether the mail or messages content represents a prioritized item.
- ICSSearchableItemAttributeSet.TextContentSummary: A string that presents the Apple Intelligence summarization of the item.
- ICSSearchableItemAttributeSet.TranscribedTextContent: A string that represents the text the system transcribed.
- ICSSearchableItemAttributeSet.SetTranscribedTextContent
Providing item representations ¶
- ICSSearchableItemAttributeSet.ProviderDataTypeIdentifiers: An array of identifiers that corresponds to data representations the delegate provides.
- ICSSearchableItemAttributeSet.SetProviderDataTypeIdentifiers
- ICSSearchableItemAttributeSet.ProviderFileTypeIdentifiers: An array of identifiers that corresponds to file representations the delegate provides.
- ICSSearchableItemAttributeSet.SetProviderFileTypeIdentifiers
- ICSSearchableItemAttributeSet.ProviderInPlaceFileTypeIdentifiers: An array of identifiers that corresponds to in-place file representations the delegate provides.
- ICSSearchableItemAttributeSet.SetProviderInPlaceFileTypeIdentifiers
Describing general attributes ¶
- ICSSearchableItemAttributeSet.AlternateNames: An array of localized strings that represent alternate display names for the item.
- ICSSearchableItemAttributeSet.SetAlternateNames
- ICSSearchableItemAttributeSet.ContentType: The uniform type identifier (UTI) of the item.
- ICSSearchableItemAttributeSet.SetContentType
- ICSSearchableItemAttributeSet.ContentTypeTree: An attribute type that identifies a custom hierarchy of types to describe the attributes of your item.
- ICSSearchableItemAttributeSet.SetContentTypeTree
- ICSSearchableItemAttributeSet.ContentURL: The file URL of the content to index.
- ICSSearchableItemAttributeSet.SetContentURL
- ICSSearchableItemAttributeSet.DarkThumbnailURL: The local file URL of the thumbnail image for the item when Dark Mode is active.
- ICSSearchableItemAttributeSet.SetDarkThumbnailURL
- ICSSearchableItemAttributeSet.DisplayName: A localized string that contains the name of the item, suitable to display in the user interface.
- ICSSearchableItemAttributeSet.SetDisplayName
- ICSSearchableItemAttributeSet.Keywords: An array of keywords associated with the item, such as work, birthday, important, and so on.
- ICSSearchableItemAttributeSet.SetKeywords
- ICSSearchableItemAttributeSet.MetadataModificationDate: The date on which the last metadata attribute was changed.
- ICSSearchableItemAttributeSet.SetMetadataModificationDate
- ICSSearchableItemAttributeSet.Path: The complete path to the item.
- ICSSearchableItemAttributeSet.SetPath
- ICSSearchableItemAttributeSet.RankingHint: A number that indicates the relative importance of the item among other items from the app.
- ICSSearchableItemAttributeSet.SetRankingHint
- ICSSearchableItemAttributeSet.RelatedUniqueIdentifier: The unique identifier for the item to which the activity is related.
- ICSSearchableItemAttributeSet.SetRelatedUniqueIdentifier
- ICSSearchableItemAttributeSet.ThumbnailData: Image data that represents the thumbnail of the item.
- ICSSearchableItemAttributeSet.SetThumbnailData
- ICSSearchableItemAttributeSet.ThumbnailURL: The local file URL of the thumbnail image for the item.
- ICSSearchableItemAttributeSet.SetThumbnailURL
- ICSSearchableItemAttributeSet.Title: The title of the item.
- ICSSearchableItemAttributeSet.SetTitle
- ICSSearchableItemAttributeSet.DomainIdentifier: An identifier that represents the domain or owner of the item.
- ICSSearchableItemAttributeSet.SetDomainIdentifier
- ICSSearchableItemAttributeSet.WeakRelatedUniqueIdentifier: The unique identifier for the item to which the activity is related, but not linked.
- ICSSearchableItemAttributeSet.SetWeakRelatedUniqueIdentifier
Describing document content ¶
- ICSSearchableItemAttributeSet.Audiences: A class of entity for which the item is intended or useful.
- ICSSearchableItemAttributeSet.SetAudiences
- ICSSearchableItemAttributeSet.ContentDescription: A description of the item’s content.
- ICSSearchableItemAttributeSet.SetContentDescription
- ICSSearchableItemAttributeSet.Creator: The name of the app that created the content.
- ICSSearchableItemAttributeSet.SetCreator
- ICSSearchableItemAttributeSet.EncodingApplications: The name of the apps that converted the original content into a PDF stream.
- ICSSearchableItemAttributeSet.SetEncodingApplications
- ICSSearchableItemAttributeSet.FileSize: The size of the document file.
- ICSSearchableItemAttributeSet.SetFileSize
- ICSSearchableItemAttributeSet.FontNames: An array of font names the document uses.
- ICSSearchableItemAttributeSet.SetFontNames
- ICSSearchableItemAttributeSet.Identifier: A formal identifier that references the document the item represents.
- ICSSearchableItemAttributeSet.SetIdentifier
- ICSSearchableItemAttributeSet.Kind: A description of the kind of document the item represents.
- ICSSearchableItemAttributeSet.SetKind
- ICSSearchableItemAttributeSet.PageCount: The number of pages in the document.
- ICSSearchableItemAttributeSet.SetPageCount
- ICSSearchableItemAttributeSet.PageHeight: The height of the document page, in points (72 points per inch).
- ICSSearchableItemAttributeSet.SetPageHeight
- ICSSearchableItemAttributeSet.PageWidth: The width of the document page, in points (72 points per inch).
- ICSSearchableItemAttributeSet.SetPageWidth
- ICSSearchableItemAttributeSet.SecurityMethod: The security method (a type of encryption) that protects the document file.
- ICSSearchableItemAttributeSet.SetSecurityMethod
- ICSSearchableItemAttributeSet.Subject: The subject of the document.
- ICSSearchableItemAttributeSet.SetSubject
- ICSSearchableItemAttributeSet.Theme: The theme of the document.
- ICSSearchableItemAttributeSet.SetTheme
Describing user involvement ¶
- ICSSearchableItemAttributeSet.UserCreated: A value that indicates the user created the item.
- ICSSearchableItemAttributeSet.SetUserCreated
- ICSSearchableItemAttributeSet.UserCurated: A value that indicates the user selected the item.
- ICSSearchableItemAttributeSet.SetUserCurated
- ICSSearchableItemAttributeSet.UserOwned: A value that indicates the user purchased or owns the item.
- ICSSearchableItemAttributeSet.SetUserOwned
Describing events ¶
- ICSSearchableItemAttributeSet.AllDay: A value that indicates if the event covers an entire day.
- ICSSearchableItemAttributeSet.SetAllDay
- ICSSearchableItemAttributeSet.CompletionDate: The date on which the item was completed.
- ICSSearchableItemAttributeSet.SetCompletionDate
- ICSSearchableItemAttributeSet.DueDate: The date on which the item is due.
- ICSSearchableItemAttributeSet.SetDueDate
- ICSSearchableItemAttributeSet.EndDate: The end date for the item.
- ICSSearchableItemAttributeSet.SetEndDate
- ICSSearchableItemAttributeSet.ImportantDates: An array of important dates associated with the item.
- ICSSearchableItemAttributeSet.SetImportantDates
- ICSSearchableItemAttributeSet.StartDate: The start date for the item.
- ICSSearchableItemAttributeSet.SetStartDate
Describing places ¶
- ICSSearchableItemAttributeSet.Altitude: The altitude of the item in meters above sea level, expressed using the WGS84 datum.
- ICSSearchableItemAttributeSet.SetAltitude
- ICSSearchableItemAttributeSet.City: The city of the item’s origin according to guidelines that the provider establishes.
- ICSSearchableItemAttributeSet.SetCity
- ICSSearchableItemAttributeSet.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.
- ICSSearchableItemAttributeSet.SetCountry
- ICSSearchableItemAttributeSet.GPSAreaInformation: Information about the GPS area.
- ICSSearchableItemAttributeSet.SetGPSAreaInformation
- ICSSearchableItemAttributeSet.GPSDOP: The GPS dilution of precision value.
- ICSSearchableItemAttributeSet.SetGPSDOP
- ICSSearchableItemAttributeSet.GPSDateStamp: The date and time related to the GPS value.
- ICSSearchableItemAttributeSet.SetGPSDateStamp
- ICSSearchableItemAttributeSet.GPSDestBearing: The bearing to the destination point.
- ICSSearchableItemAttributeSet.SetGPSDestBearing
- ICSSearchableItemAttributeSet.GPSDestDistance: The distance to the destination point.
- ICSSearchableItemAttributeSet.SetGPSDestDistance
- ICSSearchableItemAttributeSet.GPSDestLatitude: The latitude of the destination point.
- ICSSearchableItemAttributeSet.SetGPSDestLatitude
- ICSSearchableItemAttributeSet.GPSDestLongitude: The longitude of the destination point.
- ICSSearchableItemAttributeSet.SetGPSDestLongitude
- ICSSearchableItemAttributeSet.GPSDifferental: The differential correction applied to the GPS receiver.
- ICSSearchableItemAttributeSet.SetGPSDifferental
- ICSSearchableItemAttributeSet.GPSMapDatum: The geodetic data that the GPS receiver uses.
- ICSSearchableItemAttributeSet.SetGPSMapDatum
- ICSSearchableItemAttributeSet.GPSMeasureMode: The measurement precision mode in use by the GPS receiver.
- ICSSearchableItemAttributeSet.SetGPSMeasureMode
- ICSSearchableItemAttributeSet.GPSProcessingMethod: The location finding method that the GPS receiver uses.
- ICSSearchableItemAttributeSet.SetGPSProcessingMethod
- ICSSearchableItemAttributeSet.GPSStatus: The status of the GPS receiver.
- ICSSearchableItemAttributeSet.SetGPSStatus
- ICSSearchableItemAttributeSet.GPSTrack: The direction of travel of the item in degrees from true north.
- ICSSearchableItemAttributeSet.SetGPSTrack
- ICSSearchableItemAttributeSet.Headline: A publishable string that provides a synopsis of the contents of the item.
- ICSSearchableItemAttributeSet.SetHeadline
- ICSSearchableItemAttributeSet.ImageDirection: The direction of the item’s image in degrees from true north.
- ICSSearchableItemAttributeSet.SetImageDirection
- ICSSearchableItemAttributeSet.Instructions: Instructions that concern the use of the item, such as an embargo or warning.
- ICSSearchableItemAttributeSet.SetInstructions
- ICSSearchableItemAttributeSet.Latitude: The latitude of the item, in degrees north of the equator, expressed using the WGS84 datum.
- ICSSearchableItemAttributeSet.SetLatitude
- ICSSearchableItemAttributeSet.Longitude: The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum.
- ICSSearchableItemAttributeSet.SetLongitude
- ICSSearchableItemAttributeSet.NamedLocation: The name of the location or point of interest associated with the item.
- ICSSearchableItemAttributeSet.SetNamedLocation
- ICSSearchableItemAttributeSet.Speed: The speed of the item, in kilometers per hour.
- ICSSearchableItemAttributeSet.SetSpeed
- ICSSearchableItemAttributeSet.StateOrProvince: The province or state of origin according to guidelines the provider establishes.
- ICSSearchableItemAttributeSet.SetStateOrProvince
- ICSSearchableItemAttributeSet.Timestamp: The timestamp on the item.
- ICSSearchableItemAttributeSet.SetTimestamp
- ICSSearchableItemAttributeSet.FullyFormattedAddress: The fully formatted address of the item, received from MapKit.
- ICSSearchableItemAttributeSet.SetFullyFormattedAddress
- ICSSearchableItemAttributeSet.PostalCode: The postal code for the item according to guidelines the provider establishes.
- ICSSearchableItemAttributeSet.SetPostalCode
- ICSSearchableItemAttributeSet.SubThoroughfare: The sublocation, such as a street number, for the item according to guidelines the provider establishes.
- ICSSearchableItemAttributeSet.SetSubThoroughfare
- ICSSearchableItemAttributeSet.Thoroughfare: The thoroughfare, such as a street name, associated with the location for the item according to guidelines the provider establishes.
- ICSSearchableItemAttributeSet.SetThoroughfare
Describing media ¶
- ICSSearchableItemAttributeSet.Comment: A comment related to the media file.
- ICSSearchableItemAttributeSet.SetComment
- ICSSearchableItemAttributeSet.ContentCreationDate: The creation date of an edited or optimized version of the song or composition.
- ICSSearchableItemAttributeSet.SetContentCreationDate
- ICSSearchableItemAttributeSet.ContentModificationDate: The date on which the contents of the file was last modified.
- ICSSearchableItemAttributeSet.SetContentModificationDate
- ICSSearchableItemAttributeSet.ContentSources: An array of sources from which the media was obtained.
- ICSSearchableItemAttributeSet.SetContentSources
- ICSSearchableItemAttributeSet.Copyright: The copyright date of the content.
- ICSSearchableItemAttributeSet.SetCopyright
- ICSSearchableItemAttributeSet.DownloadedDate: The most recent date on which the file was downloaded or received.
- ICSSearchableItemAttributeSet.SetDownloadedDate
- ICSSearchableItemAttributeSet.Editors: A list of editors who have worked on the file.
- ICSSearchableItemAttributeSet.SetEditors
- ICSSearchableItemAttributeSet.LastUsedDate: The date on which the file was last used.
- ICSSearchableItemAttributeSet.SetLastUsedDate
- ICSSearchableItemAttributeSet.Participants: A list of people who are visible in an image or movie or written about in a document.
- ICSSearchableItemAttributeSet.SetParticipants
- ICSSearchableItemAttributeSet.Projects: A list of projects of which this file is a part.
- ICSSearchableItemAttributeSet.SetProjects
- ICSSearchableItemAttributeSet.AddedDate: The date on which the item was moved into its current location.
- ICSSearchableItemAttributeSet.SetAddedDate
- ICSSearchableItemAttributeSet.Codecs: The codecs used to encode/decode the media.
- ICSSearchableItemAttributeSet.SetCodecs
- ICSSearchableItemAttributeSet.ContactKeywords: A list of contacts who are associated with the content in some way, not including the author.
- ICSSearchableItemAttributeSet.SetContactKeywords
- ICSSearchableItemAttributeSet.DeliveryType: The delivery type of the file.
- ICSSearchableItemAttributeSet.SetDeliveryType
- ICSSearchableItemAttributeSet.Duration: The duration (if appropriate) of the content of the file, in seconds.
- ICSSearchableItemAttributeSet.SetDuration
- ICSSearchableItemAttributeSet.MediaTypes: The media types present in the content.
- ICSSearchableItemAttributeSet.SetMediaTypes
- ICSSearchableItemAttributeSet.Organizations: A list of companies or organizations that created the content.
- ICSSearchableItemAttributeSet.SetOrganizations
- ICSSearchableItemAttributeSet.Streamable: A value that indicates if the content is prepared for streaming.
- ICSSearchableItemAttributeSet.SetStreamable
- ICSSearchableItemAttributeSet.TotalBitRate: The total bit rate of the media, combining audio and video.
- ICSSearchableItemAttributeSet.SetTotalBitRate
- ICSSearchableItemAttributeSet.AudioBitRate: The audio bit rate of the media.
- ICSSearchableItemAttributeSet.SetAudioBitRate
- ICSSearchableItemAttributeSet.Version: A version string associated with the file.
- ICSSearchableItemAttributeSet.SetVersion
- ICSSearchableItemAttributeSet.VideoBitRate: The video bit rate of the media.
- ICSSearchableItemAttributeSet.SetVideoBitRate
- ICSSearchableItemAttributeSet.Contributors: A list of people, organizations, or services that made contributions to the media content.
- ICSSearchableItemAttributeSet.SetContributors
- ICSSearchableItemAttributeSet.Languages: A list of the included languages for the intellectual content of the media.
- ICSSearchableItemAttributeSet.SetLanguages
- ICSSearchableItemAttributeSet.Publishers: A list of people, organizations, services, or other entities responsible for making the media available.
- ICSSearchableItemAttributeSet.SetPublishers
- ICSSearchableItemAttributeSet.Rights: A link to information about the rights held in and over the media.
- ICSSearchableItemAttributeSet.SetRights
- ICSSearchableItemAttributeSet.Role: Indicates the role of the content creator.
- ICSSearchableItemAttributeSet.SetRole
- ICSSearchableItemAttributeSet.ContentRating: A value that indicates if the media contains explicit content.
- ICSSearchableItemAttributeSet.SetContentRating
- ICSSearchableItemAttributeSet.Coverage: A list of descriptors that specify the extent or scope of the media.
- ICSSearchableItemAttributeSet.SetCoverage
- ICSSearchableItemAttributeSet.Director: The name of the director of the media (for example, a movie director).
- ICSSearchableItemAttributeSet.SetDirector
- ICSSearchableItemAttributeSet.Genre: The genre of the media.
- ICSSearchableItemAttributeSet.SetGenre
- ICSSearchableItemAttributeSet.Information: Information about the media.
- ICSSearchableItemAttributeSet.SetInformation
- ICSSearchableItemAttributeSet.Local: A value that indicates if the media is local.
- ICSSearchableItemAttributeSet.SetLocal
- ICSSearchableItemAttributeSet.OriginalFormat: The original format of the media.
- ICSSearchableItemAttributeSet.SetOriginalFormat
- ICSSearchableItemAttributeSet.OriginalSource: The original source of the media.
- ICSSearchableItemAttributeSet.SetOriginalSource
- ICSSearchableItemAttributeSet.Performers: A list of performers in the media.
- ICSSearchableItemAttributeSet.SetPerformers
- ICSSearchableItemAttributeSet.PlayCount: A user-supplied play count for the media.
- ICSSearchableItemAttributeSet.SetPlayCount
- ICSSearchableItemAttributeSet.Producer: The producer of the content.
- ICSSearchableItemAttributeSet.SetProducer
- ICSSearchableItemAttributeSet.Rating: The user-supplied rating of the media.
- ICSSearchableItemAttributeSet.SetRating
- ICSSearchableItemAttributeSet.RatingDescription: A description of the rating.
- ICSSearchableItemAttributeSet.SetRatingDescription
- ICSSearchableItemAttributeSet.URL: The URL associated with the media.
- ICSSearchableItemAttributeSet.SetURL
Describing music ¶
- ICSSearchableItemAttributeSet.Album: The title for a collection of audio media.
- ICSSearchableItemAttributeSet.SetAlbum
- ICSSearchableItemAttributeSet.Artist: The artist associated with the media.
- ICSSearchableItemAttributeSet.SetArtist
- ICSSearchableItemAttributeSet.AudioChannelCount: The number of channels in the audio data that the file contains.
- ICSSearchableItemAttributeSet.SetAudioChannelCount
- ICSSearchableItemAttributeSet.AudioEncodingApplication: The name of the application that encoded the data the audio file contains.
- ICSSearchableItemAttributeSet.SetAudioEncodingApplication
- ICSSearchableItemAttributeSet.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.
- ICSSearchableItemAttributeSet.SetAudioSampleRate
- ICSSearchableItemAttributeSet.AudioTrackNumber: The track number of a song or audio composition when part of an album.
- ICSSearchableItemAttributeSet.SetAudioTrackNumber
- ICSSearchableItemAttributeSet.Composer: The composer of the song or audio composition that the audio file contains.
- ICSSearchableItemAttributeSet.SetComposer
- ICSSearchableItemAttributeSet.KeySignature: The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m.
- ICSSearchableItemAttributeSet.SetKeySignature
- ICSSearchableItemAttributeSet.Lyricist: The lyricist or text writer for the song or audio composition that the file contains.
- ICSSearchableItemAttributeSet.SetLyricist
- ICSSearchableItemAttributeSet.MusicalGenre: The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical.
- ICSSearchableItemAttributeSet.SetMusicalGenre
- ICSSearchableItemAttributeSet.RecordingDate: The recording date of the song or composition.
- ICSSearchableItemAttributeSet.SetRecordingDate
- ICSSearchableItemAttributeSet.Tempo: The tempo of the music that the audio file contains, in beats per minute.
- ICSSearchableItemAttributeSet.SetTempo
- ICSSearchableItemAttributeSet.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”.
- ICSSearchableItemAttributeSet.SetTimeSignature
- ICSSearchableItemAttributeSet.GeneralMIDISequence: A value that indicates whether the MIDI sequence the file contains is set up for use with a general MIDI device.
- ICSSearchableItemAttributeSet.SetGeneralMIDISequence
- ICSSearchableItemAttributeSet.MusicalInstrumentCategory: The category of the instrument associated with the audio file.
- ICSSearchableItemAttributeSet.SetMusicalInstrumentCategory
- ICSSearchableItemAttributeSet.MusicalInstrumentName: The name of an instrument within the context of an instrument category.
- ICSSearchableItemAttributeSet.SetMusicalInstrumentName
Describing images ¶
- ICSSearchableItemAttributeSet.ISOSpeed: The ISO speed setting at the time the camera captured the image.
- ICSSearchableItemAttributeSet.SetISOSpeed
- ICSSearchableItemAttributeSet.AcquisitionMake: The manufacturer of the device that captured the image.
- ICSSearchableItemAttributeSet.SetAcquisitionMake
- ICSSearchableItemAttributeSet.AcquisitionModel: The model of the device that captured the image.
- ICSSearchableItemAttributeSet.SetAcquisitionModel
- ICSSearchableItemAttributeSet.Aperture: The size of the lens aperture at the time the camera captured the image, as a log-scale APEX value.
- ICSSearchableItemAttributeSet.SetAperture
- ICSSearchableItemAttributeSet.BitsPerSample: The number of bits per sample.
- ICSSearchableItemAttributeSet.SetBitsPerSample
- ICSSearchableItemAttributeSet.CameraOwner: The owner of the camera that captured the image.
- ICSSearchableItemAttributeSet.SetCameraOwner
- ICSSearchableItemAttributeSet.ColorSpace: The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr.
- ICSSearchableItemAttributeSet.SetColorSpace
- ICSSearchableItemAttributeSet.FlashOn: A value that indicates if the camera used a flash to capture the image.
- ICSSearchableItemAttributeSet.SetFlashOn
- ICSSearchableItemAttributeSet.FocalLength: The actual focal length of the lens, in millimeters.
- ICSSearchableItemAttributeSet.SetFocalLength
- ICSSearchableItemAttributeSet.FocalLength35mm: A value that indicates if the focal length is 35mm.
- ICSSearchableItemAttributeSet.SetFocalLength35mm
- ICSSearchableItemAttributeSet.LayerNames: An array that contains the names of the various layers in the file.
- ICSSearchableItemAttributeSet.SetLayerNames
- ICSSearchableItemAttributeSet.LensModel: The model of the lens that captured the image.
- ICSSearchableItemAttributeSet.SetLensModel
- ICSSearchableItemAttributeSet.Orientation: The orientation of the data.
- ICSSearchableItemAttributeSet.SetOrientation
- ICSSearchableItemAttributeSet.PixelCount: The total number of pixels in the image.
- ICSSearchableItemAttributeSet.SetPixelCount
- ICSSearchableItemAttributeSet.PixelHeight: The height of the item, such as image or video frame height, in pixels.
- ICSSearchableItemAttributeSet.SetPixelHeight
- ICSSearchableItemAttributeSet.PixelWidth: The width of the item, such as image or video frame width, in pixels.
- ICSSearchableItemAttributeSet.SetPixelWidth
- ICSSearchableItemAttributeSet.WhiteBalance: The white balance setting when the camera captured the image.
- ICSSearchableItemAttributeSet.SetWhiteBalance
- ICSSearchableItemAttributeSet.EXIFGPSVersion: The version of GPS Info IFD header that was used to generate the metadata for the image.
- ICSSearchableItemAttributeSet.SetEXIFGPSVersion
- ICSSearchableItemAttributeSet.EXIFVersion: The version of the EXIF header that was used to generate the metadata for the image.
- ICSSearchableItemAttributeSet.SetEXIFVersion
- ICSSearchableItemAttributeSet.ExposureMode: The mode the camera used for the exposure of the image.
- ICSSearchableItemAttributeSet.SetExposureMode
- ICSSearchableItemAttributeSet.ExposureProgram: The class of the program the camera used to set exposure when capturing the image.
- ICSSearchableItemAttributeSet.SetExposureProgram
- ICSSearchableItemAttributeSet.ExposureTime: The time that the lens was open during exposure, in seconds.
- ICSSearchableItemAttributeSet.SetExposureTime
- ICSSearchableItemAttributeSet.ExposureTimeString: The time that the lens was open during exposure, in a string, such as “1/250 seconds”.
- ICSSearchableItemAttributeSet.SetExposureTimeString
- ICSSearchableItemAttributeSet.FNumber: The focal length of the lens, divided by the diameter of the aperture when the camera captured the image.
- ICSSearchableItemAttributeSet.SetFNumber
- ICSSearchableItemAttributeSet.HasAlphaChannel: Indicates if the image file has an alpha channel.
- ICSSearchableItemAttributeSet.SetHasAlphaChannel
- ICSSearchableItemAttributeSet.MaxAperture: The smallest F number of the lens.
- ICSSearchableItemAttributeSet.SetMaxAperture
- ICSSearchableItemAttributeSet.MeteringMode: The metering mode.
- ICSSearchableItemAttributeSet.SetMeteringMode
- ICSSearchableItemAttributeSet.ProfileName: The name of the color profile the camera used for the image.
- ICSSearchableItemAttributeSet.SetProfileName
- ICSSearchableItemAttributeSet.RedEyeOn: A value that indicates if the camera used red-eye reduction when capturing the image.
- ICSSearchableItemAttributeSet.SetRedEyeOn
- ICSSearchableItemAttributeSet.ResolutionHeightDPI: The resolution height of the image, in DPI.
- ICSSearchableItemAttributeSet.SetResolutionHeightDPI
- ICSSearchableItemAttributeSet.ResolutionWidthDPI: The resolution width of the image, in DPI.
- ICSSearchableItemAttributeSet.SetResolutionWidthDPI
Describing messages ¶
- ICSSearchableItemAttributeSet.HTMLContentData: The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string.
- ICSSearchableItemAttributeSet.SetHTMLContentData
- ICSSearchableItemAttributeSet.AccountHandles: An array of the canonical handles for the account with which the message is associated.
- ICSSearchableItemAttributeSet.SetAccountHandles
- ICSSearchableItemAttributeSet.AccountIdentifier: The unique identifier for the account with which the message is associated, if any.
- ICSSearchableItemAttributeSet.SetAccountIdentifier
- ICSSearchableItemAttributeSet.AdditionalRecipients: An array of CSPerson(<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the Cc: field in an email message.
- ICSSearchableItemAttributeSet.SetAdditionalRecipients
- ICSSearchableItemAttributeSet.AuthorAddresses: An array of addresses associated with the author of the message.
- ICSSearchableItemAttributeSet.SetAuthorAddresses
- ICSSearchableItemAttributeSet.AuthorEmailAddresses: An array of email addresses associated with the author of the message.
- ICSSearchableItemAttributeSet.SetAuthorEmailAddresses
- ICSSearchableItemAttributeSet.AuthorNames: An array of names representing the authors who have worked on the message.
- ICSSearchableItemAttributeSet.SetAuthorNames
- ICSSearchableItemAttributeSet.Authors: An array of CSPerson(<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the From: field in an item.
- ICSSearchableItemAttributeSet.SetAuthors
- ICSSearchableItemAttributeSet.EmailAddresses: An array of email addresses associated with the message.
- ICSSearchableItemAttributeSet.SetEmailAddresses
- ICSSearchableItemAttributeSet.EmailHeaders: A dictionary that contains all the headers of the message.
- ICSSearchableItemAttributeSet.SetEmailHeaders
- ICSSearchableItemAttributeSet.HiddenAdditionalRecipients: An array of CSPerson(<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the Bcc: field in an email message.
- ICSSearchableItemAttributeSet.SetHiddenAdditionalRecipients
- ICSSearchableItemAttributeSet.InstantMessageAddresses: An array of instant message addresses for the message.
- ICSSearchableItemAttributeSet.SetInstantMessageAddresses
- ICSSearchableItemAttributeSet.LikelyJunk: A value that indicates if the message is likely to be considered junk.
- ICSSearchableItemAttributeSet.SetLikelyJunk
- ICSSearchableItemAttributeSet.MailboxIdentifiers: An array of mailbox identifiers associated with the message.
- ICSSearchableItemAttributeSet.SetMailboxIdentifiers
- ICSSearchableItemAttributeSet.PhoneNumbers: An array of phone numbers associated with the message.
- ICSSearchableItemAttributeSet.SetPhoneNumbers
- ICSSearchableItemAttributeSet.PrimaryRecipients: An array of CSPerson(<https://developer.apple.com/documentation/CoreSpotlight/CSPerson>) objects representing the content of the To: field in an email message.
- ICSSearchableItemAttributeSet.SetPrimaryRecipients
- ICSSearchableItemAttributeSet.RecipientAddresses: An array of addresses associated with the recipients of the message.
- ICSSearchableItemAttributeSet.SetRecipientAddresses
- ICSSearchableItemAttributeSet.RecipientEmailAddresses: An array of email addresses associated with the recipient.
- ICSSearchableItemAttributeSet.SetRecipientEmailAddresses
- ICSSearchableItemAttributeSet.RecipientNames: An array of names representing the recipients of this message.
- ICSSearchableItemAttributeSet.SetRecipientNames
- ICSSearchableItemAttributeSet.TextContent: The textual content of the message.
- ICSSearchableItemAttributeSet.SetTextContent
Describing containment ¶
- ICSSearchableItemAttributeSet.ContainerDisplayName: A localized string that specifies the name of a container to which the item belongs, suitable to display in the user interface.
- ICSSearchableItemAttributeSet.SetContainerDisplayName
- ICSSearchableItemAttributeSet.ContainerIdentifier: The identifier of the container to which the item belongs.
- ICSSearchableItemAttributeSet.SetContainerIdentifier
- ICSSearchableItemAttributeSet.ContainerOrder: The order of the item within the container.
- ICSSearchableItemAttributeSet.SetContainerOrder
- ICSSearchableItemAttributeSet.ContainerTitle: The title of the container to which the item belongs.
- ICSSearchableItemAttributeSet.SetContainerTitle
Describing supporting actions ¶
- ICSSearchableItemAttributeSet.SupportsNavigation: A value that indicates whether the item contains information sufficient to provide navigation to the location it represents.
- ICSSearchableItemAttributeSet.SetSupportsNavigation
- ICSSearchableItemAttributeSet.SupportsPhoneCall: A value that indicates whether the item contains information sufficient to allow a phone call to a number associated with the item.
- ICSSearchableItemAttributeSet.SetSupportsPhoneCall
See: https://developer.apple.com/documentation/CoreSpotlight/CSSearchableItemAttributeSet
type ICSSuggestion ¶
type ICSSuggestion interface {
objectivec.IObject
// An attributed string for the localized suggestion.
LocalizedAttributedSuggestion() foundation.NSAttributedString
SetLocalizedAttributedSuggestion(value foundation.NSAttributedString)
// The type of suggestion.
SuggestionKind() CSSuggestionKind
// Compares the suggestion with a second specified suggestion.
Compare(other ICSSuggestion) foundation.ComparisonResult
CompareByRank(other ICSSuggestion) foundation.ComparisonResult
InitWithCoder(coder foundation.INSCoder) CSSuggestion
EncodeWithCoder(coder foundation.INSCoder)
}
An interface definition for the CSSuggestion class.
Setting suggestion attributes ¶
- ICSSuggestion.LocalizedAttributedSuggestion: An attributed string for the localized suggestion.
- ICSSuggestion.SetLocalizedAttributedSuggestion
- ICSSuggestion.SuggestionKind: The type of suggestion.
Comparing suggestions ¶
- ICSSuggestion.Compare: Compares the suggestion with a second specified suggestion.
- ICSSuggestion.CompareByRank
Initializers ¶
See: https://developer.apple.com/documentation/CoreSpotlight/CSSuggestion
type ICSUserQuery ¶
type ICSUserQuery interface {
ICSSearchQuery
// Creates a new user query that searches for the specified term.
InitWithUserQueryStringUserQueryContext(userQueryString string, userQueryContext ICSUserQueryContext) CSUserQuery
// The matching results and suggestions for the current query string.
Responses() unsafe.Pointer
SetResponses(value unsafe.Pointer)
// An asynchronous sequence of suggested completions for the current query text.
Suggestions() unsafe.Pointer
SetSuggestions(value unsafe.Pointer)
// The block to execute when the query delivers a new batch of suggested items.
FoundSuggestionsHandler() CSSuggestionArrayHandler
SetFoundSuggestionsHandler(value CSSuggestionArrayHandler)
// The number of suggested items the query found so far.
FoundSuggestionCount() int
}
An interface definition for the CSUserQuery class.
Creating a user query ¶
- ICSUserQuery.InitWithUserQueryStringUserQueryContext: Creates a new user query that searches for the specified term.
Executing the query automatically ¶
- ICSUserQuery.Responses: The matching results and suggestions for the current query string.
- ICSUserQuery.SetResponses
- ICSUserQuery.Suggestions: An asynchronous sequence of suggested completions for the current query text.
- ICSUserQuery.SetSuggestions
Executing the query with handler blocks ¶
- ICSUserQuery.FoundSuggestionsHandler: The block to execute when the query delivers a new batch of suggested items.
- ICSUserQuery.SetFoundSuggestionsHandler
- ICSUserQuery.FoundSuggestionCount: The number of suggested items the query found so far.
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQuery
type ICSUserQueryContext ¶
type ICSUserQueryContext interface {
ICSSearchQueryContext
// The maximum number of search results for the query to return.
MaxResultCount() int
SetMaxResultCount(value int)
// The maximum number of suggested text completions for the query to return.
MaxSuggestionCount() int
SetMaxSuggestionCount(value int)
// A Boolean value that indicates whether to exclude semantic-based search results from the output.
DisableSemanticSearch() bool
SetDisableSemanticSearch(value bool)
// A Boolean value that indicates whether the query sorts results by their relevance.
EnableRankedResults() bool
SetEnableRankedResults(value bool)
// The maximum number of ranked results to return during the query.
MaxRankedResultCount() int
SetMaxRankedResultCount(value int)
}
An interface definition for the CSUserQueryContext class.
Configuring search options ¶
- ICSUserQueryContext.MaxResultCount: The maximum number of search results for the query to return.
- ICSUserQueryContext.SetMaxResultCount
- ICSUserQueryContext.MaxSuggestionCount: The maximum number of suggested text completions for the query to return.
- ICSUserQueryContext.SetMaxSuggestionCount
- ICSUserQueryContext.DisableSemanticSearch: A Boolean value that indicates whether to exclude semantic-based search results from the output.
- ICSUserQueryContext.SetDisableSemanticSearch
Configuring the ranked results behavior ¶
- ICSUserQueryContext.EnableRankedResults: A Boolean value that indicates whether the query sorts results by their relevance.
- ICSUserQueryContext.SetEnableRankedResults
- ICSUserQueryContext.MaxRankedResultCount: The maximum number of ranked results to return during the query.
- ICSUserQueryContext.SetMaxRankedResultCount
See: https://developer.apple.com/documentation/CoreSpotlight/CSUserQueryContext
type VoidHandler ¶
type VoidHandler = func()
VoidHandler handles The handler to call after all client state has been saved.
Used by:
- CSIndexExtensionRequestHandler.SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler
- CSIndexExtensionRequestHandler.SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler
- CSSearchableIndexDelegate.SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler
- CSSearchableIndexDelegate.SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler
Source Files
¶
- blocks.gen.go
- cs_custom_attribute_key.gen.go
- cs_import_extension.gen.go
- cs_index_extension_request_handler.gen.go
- cs_localized_string.gen.go
- cs_person.gen.go
- cs_search_query.gen.go
- cs_search_query_context.gen.go
- cs_searchable_index.gen.go
- cs_searchable_index_delegate_protocol.gen.go
- cs_searchable_item.gen.go
- cs_searchable_item_attribute_set.gen.go
- cs_suggestion.gen.go
- cs_user_query.gen.go
- cs_user_query_context.gen.go
- delegate_class_counter.gen.go
- doc.gen.go
- enums.gen.go
- functions.gen.go
- generate.go
- global_vars.gen.go
- types.gen.go
- undefined_types.gen.go