MMKSearchBusinessFilter
Warning
This feature is available in the Full MapKit SDK version
|
class MMKSearchBusinessFilter : NSObject |
A filter that could be applied to search results.
Filters can be either boolean (that is Wi-Fi availability in a cafe) or enumerated (that is cuisine type in a restaurant). Enumerated filters support multiple selected values (OR-combined), to search, for example, for restaurants with Armenian or Georgian cuisine at once.
This class is used in two separate ways: server response contains all filters applicable to current search request and client can use some of these filters to get more specific results in the following search requests
Summary
Class methods
|
 init(id: String, |
Properties
|
var id: String { get } |
|
var name: String? { get } |
|
var disabled: NSNumber? { get } |
|
var iconLight: MMKImage? { get } |
|
var iconDark: MMKImage? { get } |
|
var iconAfterLight: MMKImage? { get } |
|
var iconAfterDark: MMKImage? { get } |
|
var singleSelect: NSNumber? { get } |
|
var values: MMKSearchBusinessFilterValues { get } |
Class methods
init(id:name:disabled:iconLight:iconDark:iconAfterLight:iconAfterDark:singleSelect:values:)
|
 init(id: String, |
Properties
id
|
var id: String { get } |
Filter id.
name
|
var name: String? { get } |
Human-readable filter name.
Optional field, can be nil.
disabled
|
var disabled: NSNumber? { get } |
The filter should not be used by the client, because filter is either used already (selected:true, disabled:true) or nothing would be found * (selected:false, disabled:true).
Optional field, can be nil.
iconLight
|
var iconLight: MMKImage? { get } |
Optional field, can be nil.
iconDark
|
var iconDark: MMKImage? { get } |
Optional field, can be nil.
iconAfterLight
|
var iconAfterLight: MMKImage? { get } |
Optional field, can be nil.
iconAfterDark
|
var iconAfterDark: MMKImage? { get } |
Optional field, can be nil.
singleSelect
|
var singleSelect: NSNumber? { get } |
Only one of multiple available values should be selected.
Optional field, can be nil.
values
|
var values: MMKSearchBusinessFilterValues { get } |
Filter values.