SITSearchManager Class Reference
Inherits from | NSObject |
---|---|
Declared in | SITSearchManager.h |
+ filterCustomFieldsOfElements:byRegexes:error:options:withCompletion:
Determines the elements of an array that meet an array of filters. Specifically, this method filter the property customFields of the introduced objects
+ (BOOL)filterCustomFieldsOfElements:(NSArray<SITPOIBase*> *)elements byRegexes:(NSArray<SITKeyValueFilter*> *)regexes error:(NSError **)error options:(NSDictionary *)options withCompletion:(SITSearchManagerResultsCompletion)completion
Parameters
elements |
the initial array |
---|---|
regexes |
the array of SITKeyValueFilter objects to filter by. NOTE: If more than one filter is supplied, and OR operation will be performed among results of each particular filter |
error |
error describing why the operation could not be executed. It can be nil. |
options |
NSDictionary containing parameters to modify the internal operation of the method. Available keys are: kSITSearchOptionOperationQueue (NSOperationQueue) : If provided the callback will be called into the NSOperationQueue. If not the main thread is selected kSITSearchFilterMode NSNumber containing of the values on the kSITSearchFilterModes set. Defaul is kSITSearchFilterModeAND. |
completion |
SITSearchManagerResultsCompletion completion callback |
Return Value
BOOL value indicating if the operation will be performed (YES) or not (NO)
Declared In
SITSearchManager.h