Warning
This feature is available in the Full MapKit SDK version
MMKSearchFilterCollectionBuilder
@interface MMKSearchFilterCollectionBuilder : NSObject |
Builder for filter collection.
Summary
Instance methods
- (void)addBooleanFilterWithFilterId:(nonnull NSString *)filterId; |
- (void)addEnumFilterWithFilterId:(nonnull NSString *)filterId |
- (void)addRangeFilterWithFilterId:(nonnull NSString *)filterId |
- (void)addDateFilterWithFilterId:(nonnull NSString *)filterId |
- (nonnull MMKSearchFilterCollection *)build; |
Instance methods
addBooleanFilterWithFilterId:
- (void)addBooleanFilterWithFilterId:(nonnull NSString *)filterId; |
Adds boolean filter with given id to collection.
Parameters |
|
filterId |
filter id to add. |
addEnumFilterWithFilterId:valueIds:
- (void)addEnumFilterWithFilterId:(nonnull NSString *)filterId |
Adds enum filter with given id and values to the collection.
Parameters |
|
filterId |
filter id to add. |
valueIds |
list of value ids for the enum filter. |
addRangeFilterWithFilterId:from:to:
- (void)addRangeFilterWithFilterId:(nonnull NSString *)filterId |
Adds range filter with given id and limits to the collection.
Parameters |
|
filterId |
filter id to add. |
from |
lower range limit. |
to |
upper range limit. |
addDateFilterWithFilterId:from:to:
- (void)addDateFilterWithFilterId:(nonnull NSString *)filterId |
Adds date filter with given id and limits to the collection. Limits are encoded as strings in YYYYMMDD format.
Parameters |
|
filterId |
filter id to add. |
from |
lower range limit. |
to |
upper range limit. |
build
- (nonnull MMKSearchFilterCollection *)build; |
Builds resulting collection.
Returns |
collection built from previously given filters. |