Warning

This feature is available in the Full MapKit SDK version

MMKSearchSubtitleItem

@interface MMKSearchSubtitleItem : NSObject

Separate subtitle of a certain type.

Summary

Class methods

+ (nonnull MMKSearchSubtitleItem *)subtitleItemWithType:(nonnull NSString *)type
                                                   text:(nullable NSString *)text
                                             properties:(nonnull NSArray<MRTKeyValuePair *> *)properties;

Properties

@property (nonatomic, readonly, nonnull) NSString *type;
Subtitle type

@property (nonatomic, readonly, nullable) NSString *text;
Short summary text

@property (nonatomic, readonly, nonnull) NSArray<MRTKeyValuePair *> *properties;
Detailed subtitle info

Class methods

subtitleItemWithType:text:properties:

+ (nonnull MMKSearchSubtitleItem *)subtitleItemWithType:(nonnull NSString *)type
                                                   text:(nullable NSString *)text
                                             properties:(nonnull NSArray<MRTKeyValuePair *> *)properties;


Properties

type

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

Subtitle type. For example, "exchange".


text

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

Short summary text. For example, "USD 57.69/57.3".

Optional field, can be nil.


properties

@property (nonatomic, readonly, nonnull) NSArray<MRTKeyValuePair *> *properties;

Detailed subtitle info. For example, [ {"key": "currency", "value": "USD"}, {"key": "buy", "value": "57.3"}, {"key": "sell", "value": "57.69"} ].