AutocompletePrediction.Substring | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
public static interface

# AutocompletePrediction.Substring

com.google.android.gms.location.places.AutocompletePrediction.Substring

## Class Overview

Represents a matched substring in a query suggestion's description.

Each `AutocompletePrediction.Substring` contains an offset value and a length. These describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired.

## Summary

Public Methods
abstract int | getLength()
abstract int | getOffset()

## Public Methods

#### public abstract int getLength ()

#### public abstract int getOffset ()