Instance Method

initWithName:protectionClass:

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

Declaration

- (instancetype)initWithName:(NSString *)name protectionClass:(NSFileProtectionType)protectionClass;

Parameters

name

A name that pertains to your custom organization.

protectionClass

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.

See Also

Getting an Index

+ defaultSearchableIndex

Returns the default on-device index.

- initWithName:

Returns an on-device index with the specified name.