TKDataSourceFilterDescriptor Class Reference
Inherits from | NSObject |
Declared in | TKDataSourceFilterDescriptor.h |
Properties
filterBlock
The block function that is used to filter items. This property has higher priority than the query.
@property (readonly, nullable) TKDataSourceFilterBlock filterBlock
Declared In
TKDataSourceFilterDescriptor.h
query
An SQL-like string query used when filtering items. Check the documentation of NSPredicate for detailed explanation for the syntax of this property value. The value of this property is ignored when the filterBlock property is set.
@property (nonatomic, readonly, nonnull) NSString *query
Declared In
TKDataSourceFilterDescriptor.h
Instance Methods
evaluate:
Returns true if the specified item should remain in the filtered list.
- (BOOL)evaluate:(id __nonnull)item
Parameters
- item
The item to filter.
Declared In
TKDataSourceFilterDescriptor.h