Warning
This feature is available in the Full MapKit SDK version
MMKSearchFilterCollectionBuilder
class MMKSearchFilterCollectionBuilder : NSObject |
Builder for filter collection.
Summary
Instance methods
func addBooleanFilter(withFilterId filterId: String) |
func addEnumFilter(withFilterId filterId: String, valueIds: [String]) |
func addRangeFilter(withFilterId filterId: String, from: Double, to: Double) |
func addDateFilter(withFilterId filterId: String, from: String, to: String) |
func build() -> MMKSearchFilterCollection |
Instance methods
addBooleanFilter(withFilterId:)
func addBooleanFilter(withFilterId filterId: String) |
Adds boolean filter with given id to collection.
Parameters |
|
filterId |
filter id to add. |
addEnumFilter(withFilterId:valueIds:)
func addEnumFilter(withFilterId filterId: String, valueIds: [String]) |
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. |
addRangeFilter(withFilterId:from:to:)
func addRangeFilter(withFilterId filterId: String, from: Double, to: Double) |
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. |
addDateFilter(withFilterId:from:to:)
func addDateFilter(withFilterId filterId: String, from: String, to: String) |
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()
func build() -> MMKSearchFilterCollection |
Builds resulting collection.
Returns |
collection built from previously given filters. |