Global Variable

CSQueryContinuationActionType

Indicates that the activity type to continue is a search or query.

Declaration

let CSQueryContinuationActionType: String

Discussion

To support search continuation, be sure to include the CoreSpotlightContinuation key in your Info.plist file with the value true. When users continue a query they started in Spotlight, your app delegate’s application(_:willContinueUserActivityWithType:) method is called with CSQueryContinuationActionType. Then, your app delegate receives an NSUserActivity object that contains a userInfo dictionary that includes the CSSearchQueryString key in its application(_:continue:restorationHandler:) method. You use the query string associated with this key to continue the search.

See Also

Continuing a Search or Activity

let CSSearchableItemActionType: String

Indicates that the activity type to continue is related to a searchable item.

let CSSearchableItemActivityIdentifier: String

Provides the key within the NSUserActivity object’s userInfo dictionary for which the value is the searchable item’s unique identifier .

let CSSearchQueryString: String

Provides the key within the NSUserActivity object’s userInfo dictionary for which the value is the string that represents the user’s current query.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software