Warning
This feature is available in the Full MapKit SDK version
MMKSearchFeature
@interface MMKSearchFeature : 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 MMKSearchFeature *)featureWithId:(nonnull NSString *)id |
Properties
@property (nonatomic, readonly, nonnull) NSString *id; |
@property (nonatomic, readonly, nonnull) MMKSearchFeatureVariantValue *value; |
@property (nonatomic, readonly, nullable) NSString *name; |
@property (nonatomic, readonly, nullable) NSString *aref; Optional field, can be nil |
@property (nonatomic, readonly, nullable) MMKImage *iconLight; |
@property (nonatomic, readonly, nullable) MMKImage *iconDark; |
Class methods
featureWithId:value:name:aref:iconLight:iconDark:
+ (nonnull MMKSearchFeature *)featureWithId:(nonnull NSString *)id |
Properties
id
@property (nonatomic, readonly, nonnull) NSString *id; |
Machine readable feature identifier.
value
@property (nonatomic, readonly, nonnull) MMKSearchFeatureVariantValue *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 MMKAttribution)
Optional field, can be nil.
iconLight
@property (nonatomic, readonly, nullable) MMKImage *iconLight; |
Optional field, can be nil.
iconDark
@property (nonatomic, readonly, nullable) MMKImage *iconDark; |
Optional field, can be nil.