PendingResult<AutocompletePrediction[]>public class QueryAutocompleteRequest
extends java.lang.Object
| Modifier and Type | Class | Description | 
|---|---|---|
static class  | 
QueryAutocompleteRequest.Response | 
PendingResult.Callback<T>| Modifier | Constructor | Description | 
|---|---|---|
protected  | 
QueryAutocompleteRequest(GeoApiContext context) | 
| Modifier and Type | Method | Description | 
|---|---|---|
T | 
await() | 
 Performs the request synchronously. 
 | 
T | 
awaitIgnoreError() | 
 Performs the request synchronously, ignoring exceptions while performing the request and errors
 returned by the server. 
 | 
void | 
cancel() | 
 Attempts to cancel the request. 
 | 
A | 
channel(java.lang.String channel) | 
 A channel to pass with the request. 
 | 
A | 
custom(java.lang.String parameter,
      java.lang.String value) | 
 Custom parameter. 
 | 
QueryAutocompleteRequest | 
input(java.lang.String input) | 
 The text string on which to search. 
 | 
A | 
language(java.lang.String language) | 
 The language in which to return results. 
 | 
QueryAutocompleteRequest | 
location(LatLng location) | 
 The point around which you wish to retrieve place information. 
 | 
QueryAutocompleteRequest | 
offset(int offset) | 
 The character position in the input term at which the service uses text for predictions. 
 | 
protected A | 
param(java.lang.String key,
     int val) | 
|
protected A | 
param(java.lang.String key,
     com.google.maps.internal.StringJoin.UrlValue val) | 
|
protected A | 
param(java.lang.String key,
     java.lang.String val) | 
|
protected A | 
paramAddToList(java.lang.String key,
              com.google.maps.internal.StringJoin.UrlValue val) | 
|
protected A | 
paramAddToList(java.lang.String key,
              java.lang.String val) | 
|
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> | 
params() | 
|
QueryAutocompleteRequest | 
radius(int radius) | 
 The distance (in meters) within which to return place results. 
 | 
void | 
setCallback(PendingResult.Callback<T> callback) | 
|
protected void | 
validateRequest() | 
protected QueryAutocompleteRequest(GeoApiContext context)
protected void validateRequest()
public QueryAutocompleteRequest input(java.lang.String input)
input - The input text to autocomplete.QueryAutocompleteRequest for call chaining.public QueryAutocompleteRequest offset(int offset)
offset - The character offset to search from.QueryAutocompleteRequest for call chaining.public QueryAutocompleteRequest location(LatLng location)
location - The location point around which to search.QueryAutocompleteRequest for call chaining.public QueryAutocompleteRequest radius(int radius)
radius - The radius around which to bias results.QueryAutocompleteRequest for call chaining.public final void setCallback(PendingResult.Callback<T> callback)
PendingResultonResult or onFailure after the request has been
 completed.setCallback in interface PendingResult<T>callback - The callback to call on completion.public final T await()
              throws ApiException,
                     java.lang.InterruptedException,
                     java.io.IOException
PendingResultawait in interface PendingResult<T>ApiException - Thrown if the API Returned result is an error.java.lang.InterruptedException - Thrown when a thread is waiting, sleeping, or otherwise occupied,
     and the thread is interrupted.java.io.IOException - Thrown when an I/O exception of some sort has occurred.public final T awaitIgnoreError()
PendingResultawaitIgnoreError in interface PendingResult<T>public final void cancel()
PendingResultcancel in interface PendingResult<T>protected A param(java.lang.String key,
                  java.lang.String val)
protected A param(java.lang.String key,
                  int val)
protected A param(java.lang.String key,
                  com.google.maps.internal.StringJoin.UrlValue val)
protected A paramAddToList(java.lang.String key,
                           java.lang.String val)
protected A paramAddToList(java.lang.String key,
                           com.google.maps.internal.StringJoin.UrlValue val)
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> params()
public final A language(java.lang.String language)
language - The language code, e.g. "en-AU" or "es".public A channel(java.lang.String channel)
channel - String to pass with the request for analytics.public A custom(java.lang.String parameter,
                java.lang.String value)
parameter - The name of the custom parameter.value - The value of the custom parameter.