Warning

This feature is available in the Full MapKit SDK version

MMKSearchFilterCollection

@interface MMKSearchFilterCollection : NSObject

Filters for search request. Use builder to setup this class.

Summary

Class methods

+ (nonnull MMKSearchFilterCollection *)filterCollectionWithBooleanFilters:(nonnull NSArray<NSString *> *)booleanFilters
                                                              enumFilters:(nonnull NSDictionary<NSString *, NSArray<NSString *> *> *)enumFilters
                                                             rangeFilters:(nonnull NSDictionary<NSString *, MMKSearchFilterCollectionNumberRange *> *)rangeFilters
                                                              dateFilters:(nonnull NSDictionary<NSString *, MMKSearchFilterCollectionDateRange *> *)dateFilters;

Properties

@property (nonatomic, readonly, nonnull) NSArray<NSString *> *booleanFilters;
List of boolean filter ids to be set

@property (nonatomic, readonly, nonnull)
    NSDictionary<NSString *, NSArray<NSString *> *> *enumFilters;

Mapping of enum filter ids to list of enum value ids

@property (nonatomic, readonly, nonnull)
    NSDictionary<NSString *, MMKSearchFilterCollectionNumberRange *>
        *rangeFilters;

Mapping of range filter ids to number range

@property (nonatomic, readonly, nonnull)
    NSDictionary<NSString *, MMKSearchFilterCollectionDateRange *> *dateFilters;

Mapping of date filter ids to date range

Class methods

filterCollectionWithBooleanFilters:enumFilters:rangeFilters:dateFilters:

+ (nonnull MMKSearchFilterCollection *)filterCollectionWithBooleanFilters:(nonnull NSArray<NSString *> *)booleanFilters
                                                              enumFilters:(nonnull NSDictionary<NSString *, NSArray<NSString *> *> *)enumFilters
                                                             rangeFilters:(nonnull NSDictionary<NSString *, MMKSearchFilterCollectionNumberRange *> *)rangeFilters
                                                              dateFilters:(nonnull NSDictionary<NSString *, MMKSearchFilterCollectionDateRange *> *)dateFilters;


Properties

booleanFilters

@property (nonatomic, readonly, nonnull) NSArray<NSString *> *booleanFilters;

List of boolean filter ids to be set.


enumFilters

@property (nonatomic, readonly, nonnull)
    NSDictionary<NSString *, NSArray<NSString *> *> *enumFilters;

Mapping of enum filter ids to list of enum value ids.


rangeFilters

@property (nonatomic, readonly, nonnull)
    NSDictionary<NSString *, MMKSearchFilterCollectionNumberRange *>
        *rangeFilters;

Mapping of range filter ids to number range.


dateFilters

@property (nonatomic, readonly, nonnull)
    NSDictionary<NSString *, MMKSearchFilterCollectionDateRange *> *dateFilters;

Mapping of date filter ids to date range.