TTAutocompleteSegment
@interface TTAutocompleteSegment : NSObject
TTAutocompleteSegment
-
The type of a detected entity.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) TTSegmentType type;
Swift
var type: TTSegmentType { get set }
-
The value of the detected entity. It may be a category name, brand name, or a part of unrecognized text.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSString *value;
Swift
var value: String? { get set }
-
The id of the category segment type.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSString *_id;
Swift
var _id: String? { get set }
-
The matched alternative name. Optionally provided for the category segment type. Present only if a part of the user query matched to the alternative name instead of a primary name. For example, for the input query
petrol station
the category segment value will begas station
and the matchedAlternativeName will bepetrol station
.Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSString *_Nullable matchedAlternativeName;
Swift
var matchedAlternativeName: String? { get set }