GMSAutocompleteMatchFragment.h 926 Bytes
Newer Older
Julio Hermosa committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
//
//  GMSAutocompleteMatchFragment.h
//  Google Places SDK for iOS
//
//  Copyright 2016 Google Inc.
//
//  Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
//  Service: https://developers.google.com/maps/terms
//


#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/**
 * This class represents a matched fragment of a string. This is a contiguous range of characters
 * in a string, suitable for highlighting in an autocompletion UI.
 */
@interface GMSAutocompleteMatchFragment : NSObject

/**
 * The offset of the matched fragment. This is an index into a string. The character at this index
 * is the first matched character.
 */
@property(nonatomic, readonly) NSUInteger offset;

/**
 * The length of the matched fragment.
 */
@property(nonatomic, readonly) NSUInteger length;

/**
 * Initializer is not available.
 */
- (instancetype)init NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END