YMKSearchFeature

Важно

This feature is available in the Full MapKit SDK version

@interface 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

+ (nonnull YMKSearchFeature *)featureWithId:(nonnull NSString *)id
                                      value:(nonnull YMKSearchFeatureVariantValue *)value
                                       name:(nullable NSString *)name
                                       aref:(nullable NSString *)aref
                                  iconLight:(nullable YMKImage *)iconLight
                                   iconDark:(nullable YMKImage *)iconDark;

Properties

@property (nonatomic, readonly, nonnull) NSString *id;
Machine readable feature identifier

@property (nonatomic, readonly, nonnull) YMKSearchFeatureVariantValue *value;
Feature value (depends on feature type)

@property (nonatomic, readonly, nullable) NSString *name;
Human readable localized representation

@property (nonatomic, readonly, nullable) NSString *aref;
Reference to information source providing given feature (see YMKAttribution)

Optional field, can be nil

@property (nonatomic, readonly, nullable) YMKImage *iconLight;
Optional field, can be nil

@property (nonatomic, readonly, nullable) YMKImage *iconDark;
Optional field, can be nil

Class methods

featureWithId:value:name:aref:iconLight:iconDark:

+ (nonnull YMKSearchFeature *)featureWithId:(nonnull NSString *)id
                                      value:(nonnull YMKSearchFeatureVariantValue *)value
                                       name:(nullable NSString *)name
                                       aref:(nullable NSString *)aref
                                  iconLight:(nullable YMKImage *)iconLight
                                   iconDark:(nullable YMKImage *)iconDark;


Properties

id

@property (nonatomic, readonly, nonnull) NSString *id;

Machine readable feature identifier.


value

@property (nonatomic, readonly, nonnull) YMKSearchFeatureVariantValue *value;

Feature value (depends on feature type).


name

@property (nonatomic, readonly, nullable) NSString *name;

Human readable localized representation.

Optional field, can be nil.


aref

@property (nonatomic, readonly, nullable) NSString *aref;

Reference to information source providing given feature (see YMKAttribution)

Optional field, can be nil.


iconLight

@property (nonatomic, readonly, nullable) YMKImage *iconLight;

Optional field, can be nil.


iconDark

@property (nonatomic, readonly, nullable) YMKImage *iconDark;

Optional field, can be nil.


Предыдущая