Instance Property

protectionClasses

An array of data protection classes that correspond to the protection classes associated with the indexed items.

Declaration

var protectionClasses: [FileProtectionType] { get set }

Discussion

Possible values for this property are complete, completeUnlessOpen, and completeUntilFirstUserAuthentication. By default, the data protection class is retrieved from the com.apple.developer.default-data-protection entitlement, if it exists; otherwise, the default value is completeUntilFirstUserAuthentication.

See Also

Creating a Query Object

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.

let CSQueryContinuationActionType: String

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

init(queryString: String, attributes: [String]?)

Initializes and returns a query object with the specified query string and item attributes.

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