GMSAutocompleteMatchFragment.h 925 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // GMSAutocompleteMatchFragment.h
  3. // Google Places SDK for iOS
  4. //
  5. // Copyright 2016 Google LLC
  6. //
  7. // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
  8. // Service: https://developers.google.com/maps/terms
  9. //
  10. #import <Foundation/Foundation.h>
  11. NS_ASSUME_NONNULL_BEGIN
  12. /**
  13. * This class represents a matched fragment of a string. This is a contiguous range of characters
  14. * in a string, suitable for highlighting in an autocompletion UI.
  15. */
  16. @interface GMSAutocompleteMatchFragment : NSObject
  17. /**
  18. * The offset of the matched fragment. This is an index into a string. The character at this index
  19. * is the first matched character.
  20. */
  21. @property(nonatomic, readonly) NSUInteger offset;
  22. /**
  23. * The length of the matched fragment.
  24. */
  25. @property(nonatomic, readonly) NSUInteger length;
  26. /**
  27. * Initializer is not available.
  28. */
  29. - (instancetype)init NS_UNAVAILABLE;
  30. @end
  31. NS_ASSUME_NONNULL_END