Performs search in SYSearchFlatDataItem objects.
More...
#import <SYSearch.h>
|
(nonnull instancetype) | + new |
|
((unavailable("Only subclasses can be instantiated.") | + __attribute__ |
|
Performs search in SYSearchFlatDataItem objects.
◆ initWithPriority:
- (nonnull instancetype) initWithPriority: |
|
(float) |
priority |
|
Creates SYFlatDataSearch.
- Parameters
-
priority | Value from 0 to 1, representing priority of search results found by this search instance comparing to other SYFlatDataSearch instances. The bigger value, the higher search result will be in the list (comparing to results from other SYFlatDataSearch). |
◆ init
- (nonnull instancetype) init |
|
|
|
◆ new
+ (nonnull instancetype) new |
|
|
|
◆ addItem:
Add searchable item.
- Returns
- ID of the added item, it can be used to remove this item later.
◆ addItems:
Add searchable items.
- Parameters
-
items | Array of searchable items to be added to search engine. |
- Returns
- Array of IDs of the added items. IDs can be used to remove these items later.
◆ removeItemWithId:
- (void) removeItemWithId: |
|
(NSUInteger) |
itemId |
|
Remove searchable item.
- Parameters
-
itemId | ID of the item which must be removed. Initially item ID is returned by addItem method. |
◆ removeItemsWithIds:
- (void) removeItemsWithIds: |
|
(nonnull NSArray< NSNumber * > *) |
itemIds |
|
Remove searchable items.
- Parameters
-
itemIds | IDs of the items which must be removed. Initially item ID is returned by addItem method. |
◆ removeAllItems
Remove all searchable items.
The documentation for this class was generated from the following file: