YMKSearchSubtitleItem

Важно

This feature is available in the Full MapKit SDK version

@interface YMKSearchSubtitleItem : NSObject

Separate subtitle of a certain type.

Summary

Class methods

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

Properties

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

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

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

Class methods

subtitleItemWithType:text:properties:

+ (nonnull YMKSearchSubtitleItem *)subtitleItemWithType:(nonnull NSString *)type
                                                   text:(nullable NSString *)text
                                             properties:(nonnull NSArray<YRTKeyValuePair *> *)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<YRTKeyValuePair *> *properties;

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


Предыдущая
Следующая