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;
Adds boolean filter with given id to collection

- (void)addEnumFilterWithFilterId:(nonnull NSString *)filterId
                         valueIds:(nonnull NSArray<NSString *> *)valueIds;

Adds enum filter with given id and values to the collection

- (void)addRangeFilterWithFilterId:(nonnull NSString *)filterId
                              from:(double)from
                                to:(double)to;

Adds range filter with given id and limits to the collection

- (void)addDateFilterWithFilterId:(nonnull NSString *)filterId
                             from:(nonnull NSString *)from
                               to:(nonnull NSString *)to;

Adds date filter with given id and limits to the collection

- (nonnull MMKSearchFilterCollection *)build;
Builds resulting collection

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
                         valueIds:(nonnull NSArray<NSString *> *)valueIds;

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
                              from:(double)from
                                to:(double)to;

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
                             from:(nonnull NSString *)from
                               to:(nonnull NSString *)to;

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.