Type Method

default()

Returns the default on-device index.

Declaration

class func `default`() -> Self

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 Also

Getting an Index

init(name: String)

Returns an on-device index with the specified name.

init(name: String, protectionClass: FileProtectionType?)

Returns an on-device index with the specified name and data protection class.

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