Важно

This feature is available in the Full MapKit SDK version

YMKSearchFeature

class YMKSearchFeature : NSObject

Describes some common feature of organizations. Can be of three types:

  • boolean (like on/off switch, as for free Wi-Fi availability).

  • enumerated (can have multiple values at once, like cuisine types in a cafe).

  • text (like enumerated but with any strings instead of predefined values).

Summary

Class methods

 init(id: String,
   value: YMKSearchFeatureVariantValue,
    name: String?,
    aref: String?,
 iconLight: YMKImage?,
 iconDark: YMKImage?)

Properties

var id: String { get }
Machine readable feature identifier

var valueYMKSearchFeatureVariantValue { get }
Feature value (depends on feature type)

var name: String? { get }
Human readable localized representation

var aref: String? { get }
Reference to information source providing given feature (see YMKAttribution)

Optional field, can be nil

var iconLightYMKImage? { get }
Optional field, can be nil

var iconDarkYMKImage? { get }
Optional field, can be nil

Class methods

init(id:value:name:aref:iconLight:iconDark:)

 init(id: String,
   value: YMKSearchFeatureVariantValue,
    name: String?,
    aref: String?,
 iconLight: YMKImage?,
 iconDark: YMKImage?)


Properties

id

var id: String { get }

Machine readable feature identifier.


value

var value: YMKSearchFeatureVariantValue { get }

Feature value (depends on feature type).


name

var name: String? { get }

Human readable localized representation.

Optional field, can be nil.


aref

var aref: String? { get }

Reference to information source providing given feature (see YMKAttribution)

Optional field, can be nil.


iconLight

var iconLight: YMKImage? { get }

Optional field, can be nil.


iconDark

var iconDark: YMKImage? { get }

Optional field, can be nil.


Предыдущая